remove cache subscriber not notified
Hello, Im working on a react native applicate which renders some views conditionally based on the data i fetch via react query. This is basically a getMe call to check if you're authenticated.
When i login this data is fetched and the routes will render correctly. However when i logout i try to reset/remove the queries but the useQuery subscriber is not getting this update.
This is what i do to logout
1 Reply
foreign-sapphireOP•13mo ago
But doing so the getMe in AppLayout is not updating so the user stays on the logout page.
What is the best approach to reset a query a notify the subscribers?