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
Example repo with vite, react, tanstack router and an api in express js
Cannot find module '@tanstack/router-plugin/vite' or its corresponding type declarations.
tsc
error in my vite.config.ts
file. Routing itself works fine, but the error is annoying and I'm wondering if I've missed a step somewhere.
My package.json
has:
```
"@tanstack/react-router": "^1.40.0",...Pending Component not working properly!
Implement AuthWrapper in filebased routing
Double navigation
react-router-dom
, but now the only way i can manage to get it working is leaving a dangling timeout with wait 0.
Any ideas why this does not work or how i can fix it?...How to pass props to Layout Routes and redirection.
Handle session expiry
Route matching under multiple layout with file based is not under a parent route

Authenticated routes are showing after a logout on the first navigation back to it
custom link with createLink doesnt render the Link component
Route files keep resetting
File-based router open dialog in parent route
Redirecting in 'beforeLoad' to change one parameter in the URL
/blog/article/hola
to redirect to /blog/article/hello
when in English.
So far I have managed this with the beforeLoad
function on the route and throwing redirect()
with my new route. ...How to test a custom hook that uses tanstack router?!??
Pending matches not working as expected
<MatchRoute />
component with pending flag to show a loading indicator while the router is navigating to a particular route.
I have a loader that fetches data in the route I am navigating to and based on the docs (https://tanstack.com/router/v1/docs/framework/react/guide/navigation#usematchroute-and-matchroute) I expected it to show a loading indicator while the loader was fetching but it doesn't do that.
...If I call via `useMatches` from /products/1234/a,' should each segment be returned as its own match?
useMatches
to access all of the matches associated with my current route, should Tanstack Router return all of the routes preceding my current route as well? Say I've navigate to /products/1234/a in the browser. In the array of routes returned by TRR, should I see one for each of these path segments plus layout routes? Right now, I'm not seeing route match for /products
in the array.Difference between `router.latestLocation` and `router.parseLocation()`
router.latestLocation
might be more performant, but before relying on this I'd like to understand the difference....Way to determine if there is routing history within the app?
router.history.back()
, but I don't want it to potentially end up sending the user out of our app. So with react-router@3 we have a helper goBackWithFallback()
which takes an optional URL which we navigate to in case going back would send the user out of the apps.
Is there a similar way to determine if there is routing history, and going back one step in history makes us end up in our app?...File structure for nested breadcrumbs [solved]
index.tsx
which is exposed under the __root.tsx
in the same directory level, one called organizations, and a third. On the root layout I have my shared navbar in the layout, but in the organizations route, I can dive 5 levels deeper. I am having some difficulty figuring out the file structure here for File Based Routing. On the root of the /organizations
route I want to include a shared breadcrumb that is persistent on all child routes. I want the file structure to look something like this
```
__root.tsx
index.tsx
organizations...