You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, what I'd like to do in my React component is calling useGetExamReservationsQuery to get reservation info for each exam id obtained from useGetAllExamsQuery. I can't call useGetExamReservationsQuery hook inside a loop, so how can I implement this appropriately?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an app with a custom baseQuery (axios) and also 2 API slices as follows:
examApi
reservationApi
Now, what I'd like to do in my React component is calling
useGetExamReservationsQuery
to get reservation info for each exam id obtained fromuseGetAllExamsQuery
. I can't calluseGetExamReservationsQuery
hook inside a loop, so how can I implement this appropriately?Beta Was this translation helpful? Give feedback.
All reactions