QueryClient configuration: Invalidating all queries when a 401 is returned (solid-query)
Hi,
Is there a way to do something like:
1 Reply
manual-pink•14mo ago
use the global cache callbacks: https://tkdodo.eu/blog/automatic-query-invalidation-after-mutations#the-global-cache-callbacks
Automatic Query Invalidation after Mutations
Even though there is nothing built into React Query, it doesn't need a lot of code to implement automatic query invalidation in user-land thanks to the global cache callbacks.