Repository navigation
TanStack Start is missing documentation on how to add TanStack Query #6247
Unanswered
vicentematus
asked this question in
Q&A
Replies: 1 comment
|
The docs for this are already on main: TanStack Query in the Start guides (
There is also a reference for the integration options at Router integrations / Query ( The page's front matter says (Written with help from Claude, an AI assistant; I checked it against the docs/source.) |
0 replies
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?
All reactions