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
Errors in deployment after migrations
What if I want a layout route named “`index`”?
posts.index.tsx
has been made to mean /posts/
and not /posts/index
then how can layout route /posts/index
be accomplished? Can this be done without changing the indexToken
config option away from “index
”?
* posts.index.tsx
-> /posts/
* posts.[index].tsx
-> /posts/[index]
* posts.index.route.tsx
-> /posts/
...Techniques for reducing request waterfalls for dependent queries in loaders
Is it possible to create a type of a subset of the routes for LinkOptions?
Safe way to use the createRouter singleton without circular imports?
router
singleton (from createRouter
) actually meant to be imported and used anywhere in the app?
I’ve noticed that it can easily cause circular import issues — the singleton imports the route tree and the route tree is importing the page definitions (component). If a page then imports the singleton, it loops back and causes problems.
Has anyone figured out the recommended way to use the router instance without running into these circular imports?...Auth best practice: middleware or root beforeload?
Accessing context in route `head`
head
?
I am passing my i18n context from the root, and it would be nice to be able to use it there to I can call i18n._("This page title")
...Any idea why "Loading" text is not shown instantly in the following example? Video attached.
In file-based routing, how to avoid duplicating files?
Does onResolved fire on initial page load in TanStack Router?”
router.subscribe
in combination with the default browser routing (createRouter
).
If I subscribe like this:
```router.subscribe('onResolved', (evt) => {...Esbuild JS API error with Tanstack Router Plugin

Non-redirected authentication: parallel routes
Using beforeLoad to inject data into context for deeply nested routes has performance issues
Search params are automatically converted to number type.
123
, but they could also be uuids, which are just strings. If I type my id param as a z.string(), but pass 123
the validation fails, since it converts it to a number. How can I force it to accept it as a string? Using z.coerce changes the param to %22123%22
which I don't want.How to redirect and pass search params?
Exclude children from custom link component
children
from a custom link component created with createLink()
?
We have a IconLink
component that accepts a label
property of type string
and we don't want to accept children
....Filtered Memory History in Tanstack Router
ContinueOutside
component, which will have a link to navigate me out (thereby taking me out of the memory history'd router)
I've got a very crude implementation as follows and would like to know if there was a better and typesafe way to do this in Tanstack Router....Production build FOUC

Google Tags and scripts
What is params={true} in a Link component?