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
I want to clear query results if returns error from server.
In my scenario:
User has logged in and gets previous order list by query in a component. Then user sign out but the order list still in cache. If I try to refetch gives me 401 and doesn't change data.
How can i clear specific queries directly? I tried invalidate with tag but it didn't helped me cause if returns 401 when trying to update is not affect.
And ideas?
Thank you
The text was updated successfully, but these errors were encountered:
Hello,
I want to clear query results if returns error from server.
In my scenario:
User has logged in and gets previous order list by query in a component. Then user sign out but the order list still in cache. If I try to refetch gives me 401 and doesn't change data.
How can i clear specific queries directly? I tried invalidate with tag but it didn't helped me cause if returns 401 when trying to update is not affect.
And ideas?
Thank you
The text was updated successfully, but these errors were encountered: