Skip to content

_app.tsx doesn't work as well to modals #187

@emersonlaurentino

Description

@emersonlaurentino

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions