TanStack Start is missing documentation on how to add TanStack Query #6247
Unanswered
vicentematus
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The title says it all. Adding TanStack Query isn't as straightforward as
pnpm add @tanstack/react-queryFirst, you need to modify the
__root.tsxand usecreateRootRouteWithContextpassing down thequeryClient. After that editrouter.tsx, instantiate aQueryClient, and use thesetupRouterSsrQueryIntegration.To find this out, I had to dig into the example in the repository
https://tanstack.com/start/latest/docs/framework/react/examples/start-basic-react-query
Is there a tutorial in progress from the TanStack team, or can I contribute by adding documentation?
Beta Was this translation helpful? Give feedback.
All reactions