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 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....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.