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
Where search validation happens?
How to refetch/invalidate router data?
useRouterData
?Help! 30 seconds to first paint
"Error: Invariant failed: Could not find match for from: /posts" + "Error preloading route! β"
/post/$postId
route from /posts
while the fetch with $postId
is not yet finished. This warning is not displayed at all when I don't simulate the viewports. I've tested this on multiple viewports but the warning is displayed every time. Everything seems to be working just fine but I'm not sure if it's safe to ignore this warning or not.
Here's the minimal reproduction link: https://stackblitz.com/edit/tanstack-router-ijhtsvaj?file=src%2Froutes%2Fposts_.%24postId.tsx. I've made minimal changes to posts_.$postId.tsx
, and I've increased the sleep in postQueryOptions
to 2000ms. You'll have to open the preview in new tab to see the console.
I've also added a video showcasing the problem to make it simpler to understand π«‘...
staticData on a lazy route
useMatches
and staticData
on my routes. Everything is ok until I want to use lazy route with createLazyFileRoute
which doesn't allow staticData
to be passed.
I would like to know if there's an alternative to using staticData
to achieve what I want to do, or if I need to stay on non lazy routes....[vite] Internal server error: [...]routeTree.gen.ts:28:1: ERROR: Expected identifier but found "/"
__root.tsx
, about.lazy.tsx
, index.lazy.tsx
, main.tsx
....can i have multiple Pathless Route Group Directories at the same level, each with a layout inside?
[iOS] Page swipe issues when beforeLoad runs an async fetch
will the vite server generate the routeTree if I've deleted it
path: '/', is generated unexpectedly

Trailing slash when SSR, otherwise it's ignored
Using Router with React Context/Hooks
How to show root level page not found when I have nested routes with pathless route.
/auth/*
or /auth/login/*
or /auth/signup/*
```
/
βββ about/
βββ auth/...Bypass pendingMs for certain links
pendingMs
for that page either just to avoid it, because then the page will not show it's loading state on entry, which we do want.
So basically we're looking for this behaviour:
* When navigating to that page, fall back pendingComponent until the data has loaded
* When navigating within that page (applying search params), never fall back to pendingComponent...can useSearch be used from inside a portal?
Could not find a nearest match!
I'm using just strict false as the useSearch parameters, inspecting the error I think I found why this is happening, inside the useMatch function called by the useSearch, its not returning a match (image 1) since my nearestMatchId
is /category/_category/$casual
(which is the page I was previously on) and state.matches
only includes root route and the route im going to....
How to catch chunk loading issues and reload gracefully?
window
: 'vite:preloadError'
. For reference, I'll just copy the explanation from the vite docs:
When a new deployment occurs, the hosting service may delete the assets from previous deployments. As a result, a user who visited your site before the new deployment might encounter an import error.https://vite.dev/guide/build.html#load-error-handling When using tanstack/router, the loading of route chunks seems to be handled by tanstack instead of Vite and this event is not dispatched. (Tell me if I'm wrong here, but I couldn't catch it)....
zodValidator in Route.useSearch return different types
Cannot get route type for some routes
campaignDraftsRoute
not satisfying TRoute extends AnyRoute
but other routes are?
I have the following file route:...Can I add custom information to RouteOptions?
createFileRoute
(or createLazyFileRoute
) that I can then access from the route tree data from useRouter
or similar?
Something like this, perhaps?...Route Re-rendering when using query params on same path