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'm using tanstack query on my application and I need to set up the provider on _app.tsx, but when I try to use useQuery into the modal, I receive the error:
No QueryClient set, use QueryClientProvider to set one
Exist any way to wrap routes and modals in a unique file like _root.tsx?
The text was updated successfully, but these errors were encountered:
Routes component is a common point for routes and modals located in pages folder. You can see how it works under the hood, routes and modals are different components that are displayed at the same time. Wrapping Routes component at the import level in the application would be a better solution.
I'm using tanstack query on my application and I need to set up the provider on
_app.tsx
, but when I try to useuseQuery
into the modal, I receive the error:No QueryClient set, use QueryClientProvider to set one
Exist any way to wrap routes and modals in a unique file like
_root.tsx
?The text was updated successfully, but these errors were encountered: