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?