Cancel queries
Is there an option to cancel all queries (not invalidate) and abort them? Something similar to: https://tanstack.com/query/v4/docs/react/guides/query-cancellation
Usecase:
On logout I would like to cancel all queries, show notification and then navigate to login page.
Thanks
Jörg
Usecase:
On logout I would like to cancel all queries, show notification and then navigate to login page.
Thanks
Jörg
TanStack Query provides each query function with an AbortSignal instance, if it's available in your runtime environment. When a query becomes out-of-date or inactive, this signal will become aborted. This means that all queries are cancellable, and you can respond to the cancellation inside your query function if desired. The best part about th...
