T
TanStack6mo ago
fair-rose

Tanstack-Query with Tanstack-Start

Hello, I went trought the official example for wiring T-Query with T-Start and some other community template, but I cannot find a standard why of doing it. Some people uses the new package tanstack-router-with-query which it highly experimental and other inject directly the query when creating the router. When using the latest, it seems the query provider is not needed any more. The tanstack-router-with-query on the other hand wrap internally the children with the query provider. What is the recommended way to wire the T-Query in T-Start specially for mutation ? my guest is that we need to inject the query in the router so we can access it in the loaders. is that true. But how about mutation ?
3 Replies
conscious-sapphire
conscious-sapphire6mo ago
why not use react-router-with-query?
fair-rose
fair-roseOP6mo ago
in the code they is a lot of experimental flags. But sur I will use it but I want to understand how things must be wired up to better undertand the API
conscious-sapphire
conscious-sapphire6mo ago
our start query examples use it is that enough info for now?

Did you find this page helpful?