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
Convert NavigationOptions -> RouteId
Is it possibelt to rename the `routeTree.gen.ts` file to `route-tree.gen.ts`?
Quick ?: Do I track .tanstack/ in version control like routeTree.gen.ts?
Invalidate context
Error after upgrading to v1.121.0 - Invariant failed: Could not find a nearest match!
confused about TS intellisense for routes in my app

RegisteredRouter Reference Being Lost
useParams
, useSearch
and other router related hooks, they will randomly swap from using the RegisteredRouter
in the types, to AnyRouter
. Going back to the file that has our type declaration for RegisteredRouter
and saving, fixes it, until we save the original file or make modifications, and then eventually it goes back to AnyRouter
again.
What is interesting here, is that this happens very frequently (every 1-2 file changes) on the raw hooks, but VERY rarely happens when using getRouteApi
to define our hooks....Fetching multiple resources in Loader using ensureQueryData
ensureQueryData
. I followed the example from the docs and added another queryOptions
for a second fetch. Is this the recommended approach?
```tsx
// src/routes/posts.tsx
...how to best update path params?
How to render modal/dialog as route/Outlet from Index route
/admin/users
. To do that, I put an Outlet
within the parent index.tsx
route. However, when I render the route for the modal @ /admin/users/add-user
, the background index UI (from /admin/users
) seems to unmount entirely rather than displaying beneath the Modal.
Im reasonably sure that the issue is simply because Im not properly organizing my routes. While its not a "minimal" repro, you can see my current route setup with the bugs @ https://github.com/lancej1022/enterprise-saas/tree/main/apps/web/src/routes/(authenticated) .
If its easier, you can also view the route layout in the attached screenshot....
Updating tanstack router causes crash
import { TanStackRouterVite } from "@tanstack/router-plugin/vite";
-> import { tanstackRouter } from "@tanstack/router-plugin/vite";
plugin usage:...Route file does not export any route piece
It seems like the type inference of the useSearch hook is weird after the 1.121.0 update.
tsc
command, so I checked and found that the return type of useSearch
was inferred as any
. Are there more users who had the same problem as me? Please let me know if I did something wrong.
[router-generator-plugin] undefined is not an object (evaluating 'this.environment.config')
component render running before "beforeLoad"
Invalidate router inside beforeLoad
preload
is always false). But when I actually click the link, despite the cookie has changed, the loader doesn't fires so the language texts are not updated.
```js
export const Route = createRootRouteWithContext<RouterContext>()({
head: () => ({
// ......Search mask not working on initial load
navigate
or even redirect
on my initial URL to mask search params, it does not work.
E.g. in https://codesandbox.io/p/devbox/stoic-cerf-qj7jyh
...[BEST PRACTICE] - Interdependent queries in the page loader function