Vue Query 401 Unauthorized response
Hello, I'm using Vue Query (TanStack), and I'm trying to handle errors globally. Specifically, I want to redirect users to a login page if any query fails with a 401 Unauthorized response.
What are the recommended ways to handle this scenario in the current version of Vue Query? Are there best practices or patterns for managing this globally without duplicating the logic in every query?
0 Replies