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
Storing a list of urls to be navigated through later
navigate
through. Worst case scenario I just serialize entire LinkProps
objects and disable type checking for the line but I imagine there's a better way. I checked all the functions being exported and none of them seemed like they fit the bill, but it must exist where the lib parses the window href into matchable json
For context this is a react SPA with no ssr...Multilingual URLs
/en/about
and /fr/a-propos
). How easy/difficult would something like this be to implement in TanStack Router?
Obviously, the ideal implementation would be a single .tsx
file per route, where /en/about
and /fr/a-propos
both point to (for example) about.tsx
.
We've successfully implemented this in RRv7, along with a supporting <Link>
component that will render the correct URL path depending on the current locale.. but I'd like to explore TanStack Router for new projects....SingleSPA MFE React Router issue (advise for migration to TanStack Router)
Custom Template for File Based Routing?
Catch all route for showing a modal over existing pages
Error while using useNavigate hook with react router

Dev workflow for building a pendingComponent?
pendingComponent
? I change pendingComponent
to component
whilst im developing / designing the loading state, then change it back to pendingComponent
when I'm happy. I'm wondering if im missing something obvious?errorComponent not rendering
notFoundComponent
and errorComponent
defined for a layout with some child routes defined in route.tsx
. The notFoundComponent
is getting rendered correctly when a route is not found but when an error occurs within those child routes, instead of rendering errorComponent
, it's rendering defaultErrorComponent
defined in router.tsx
which is not the behavior I am expecting. Is this the correct behavior or I am missing something?...How to handle notFound errors based on route param validation?
/posts/$postId
where I essentially just call a server function to get the relevant post:
```ts
// route
export const Route = createFileRoute("/posts/$postId")({...React RSC in Router
Virtual physical routes
physical('/posts', 'posts'),
```
└── posts
├── route.tsx (layout file not working)
├── index.tsx...Router Plugin question
search params appear in `_strictSearch` but not in `search`
Route.useSearch()
.
Using the devtools i can see that they appear in the parent routes search, but only appear in the /page
route under _strictSearch
. Anyone knows how this could happen?
```ts
export const Route = createFileRoute(...
Errors thrown in `loaderDeps` result in a blank page
validateSearch
gets re-merged back into the URL, which wasn’t clear in the docs. This isn’t the behaviour I prefer; I never really want to change what the user wrote.
Therefore, I’m trying to do validation in loaderDeps
, but I found that throw
-ing in loaderDeps
results in a blank white page with nothing being output to the console. The onError
handler does not get invoked. The exception gets completely swallowed. This can’t be the right behaviour?...TanStack Router vs Chicane
How do you handle two versions of an application?
Best way to structure /auth layout with shared Lottie animation
Is it possible to have subdomains using Tanstack Router?
DDD routing pattern in monorepo
Control `shouldReload` from navigate
false
the shouldReload
property on the createFileRoute
call (bonus related question: is there a way to set it on the root route, like defaultShouldReload
instead of repeating on every route?).
This approach works just fine, but now I need to handle the user log in....