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
How Smelly Is It To Add Components to Router Context?
Website broken? (only https://tanstack.com/router/latest)
How to get typed routeMatch
How to check for a hash match
to option in a layout
typescript performance issues
How to create a "root" layout?
__root.tsx
file as well as an _layout.tsx
file in the root of the /routes
directory, such as in the Kitchen Sink example https://tanstack.com/router/latest/docs/framework/react/examples/kitchen-sink-react-query-file-based
Based on my understanding of the _layout
routes, I was expecting the JSX in /routes/_layout.tsx
to be rendered by the __root
Outlet even on the index page, but that doesnt seem to be the case.
Am I correct in assuming that code from /routes/_layout.tsx
file will only render for nested routes and wont actually apply to the root? In other words, the only components that will match on the root are whatever is in /routes/__root.tsx
and /routes/index.tsx
?...Issue with Electron & vite & tanstack
monorepo setup
.d.ts
files. Now our setup is roughly like this:
```...to value is not assignable since upgrade.
Error on `beforeLoad` return
beforeLoad
function. Its not clear to me why, but sometimes (especially when running in Safari on mobile) there is an error. Refreshing the page always fixes the problem. However, my main issue is that the error message is:
```
Unhandled Promise Rejection: [object Object]
(anonymous function) - router.ts:1613...route.to not matching ToOptions
route.to
no longer has the trailing /
and doesn't match anything in my router.The routes still work so my assumption is that
ToOptions
is the wrong type to use here as it expects the trailing /
where route.to
trims this slash....
Nested Folder Index Routes
Nested folder routes

Is there a way to pass data when navigating?
How can I check for authentication errors on every loader call without copy and paste boilerplate?
Code split sub-routes together
Equivalent for query v4
mutateAsync vs mutate with options. What's the difference?