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
Recently moved from React Query to RTK Query and something I notice RTK Query isnt doing. I have a search input and it does API call on input change. Problem is that all previous API request is still going, this might cause a race condition that the data I get back might not be the latest one that fired.
Does RTK Query support cancelling query? I see that you can pass AbortSignal to the api call but its not triggering for normal useQuery
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
-
Hi there,
Recently moved from React Query to RTK Query and something I notice RTK Query isnt doing. I have a search input and it does API call on input change. Problem is that all previous API request is still going, this might cause a race condition that the data I get back might not be the latest one that fired.
Does RTK Query support cancelling query? I see that you can pass AbortSignal to the api call but its not triggering for normal useQuery
thanks
Beta Was this translation helpful? Give feedback.
All reactions