react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Loader called twice on the server, cause = "enter" and "stay"
Doc example improvement
const [filterDraft, setFilterDraft] = React.useState(filterBy ?? '')
was a bad practice, why do we duplicate the url state into a useState in this case ?
https://tanstack.com/router/latest/docs/framework/react/examples/kitchen-sink-file-based?path=examples%2Freact%2Fkitchen-sink-file-based%2Fsrc%2Froutes%2Fdashboard.users.route.tsx
Can't we do something like this instead:...Property 'isNewUser' does not exist on type '{}'** Route.useSearch
isNewUser
as an optional string parameter:
```typescript
const dashboardSearchSchema = z.object({
isNewUser: z.string().optional().default(""),...When to use tanstack query for loader functions
What is https://www.npmjs.com/package/@tanstack/react-router-with-query
SSR Docs incomplete? What todo with `main.tsx`
entry-client.tsx
and a entry-server.tsx
however in my vite world i just have main.tsx
and unsure where to continue. This is a missing part in the docs I think.
https://tanstack.com/router/latest/docs/framework/react/guide/ssr...How to achieve a slot pattern in a Tanstack router?
Vinxi breaks pendingComponent
Apply Middlewares globally
How can I test navigation with Cypress Component Tests?
Multiple Tanstack Start projects behaving as one in a monorepo?
Navigating to child view
/data/$parentId
and data/$parentId/$childId
Can I do something like <Link to="./$childId" params={{childId: '123"}}>Go</Link>
in the parent view? Or do I have to spell out the whole path and pass both ids for params
?...How to use TanStack Router when the app is not running in the root directory of a web server?
How to mask ?showLogin=true to /login on every possible route?
createRouteMask
to show a login modal and mask the URL to /login
. The showLogin
search parameter can be used on any page (added in route.tsx
) and the dialog will be displayed.
One workaround I can think of is to create a custom LoginLink
component that does the masking inline, but that feels wrong. I can't find a combination of from',
to and
search that makes it work 😄
Maybe some more examples in the docs would be helpful: https://tanstack.com/router/v1/docs/framework/react/guide/route-masking The example text
Navigate to a route with the search param ?showLogin=true, but masking the URL to not contain the search param` sounds good, but there is no code attached....useNavigation is not working when inside useMutation?

Cannot access 'routeTree' before initialization
Escaping characters in file router
/api/modules.account.proto.AccountController/Login
. Currently this becomes /api/modules/account/proto/AccountController/Login
. It has to be this format due to backend RPC code generation....Vite warning node:fs when using StartClient component
[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/Users/jasonkuhrt/CascadeProjects/vite-webapp/node_modules/.pnpm/@tanstack+start-client-core@1.114.25/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/Users/jasonkuhrt/CascadeProjects/vite-webapp/node_modules/.pnpm/@tanstack+start-client-core@1.114.25/node_modules/@tanstack/start-client-core/dist/esm/createServerFn.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
Tanstack Router Context
Getting access to parent route data in child route loader