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
SolidJS and TanStack Router Excessive Rendering Issue
defaultPreload: 'intent' causes continuous re-renders when hovering over links.
Issues Identified
1. Multiple Renders on Home Page Load:
- The home page (/) renders at least four times upon initial navigation....Why Does defaultPreload: 'intent' Fetch Data Again on Click?
defaultPreload: 'intent'?. When I hover over a link, it preloads the routes, which is the expected behavior. However, when I click the link, it still fetches/loads the route data again. Please check the attached video for a demonstration.Router + Query + Suspense + Deferred data
how to get params strict: false inside beforeLoad and loader?
relative navigation with dynamic source route?
How to emulate Next.js app router constraints
How to do non-nested routes with virtual file routes?
Migrating to tanstack Start
How do I get context set in root route?
Breadcrumbs with async loaders in between
Which type provides me all registered TanStack Router routes in my project?
Tons of "any" types.
@tanstack/react-router package is correctly typed. It's all "any". The import is referencing the correct node module, and other packages are all correctly typed (the QueryClient import works fine, but that comes from the react query package)....Custom comparison method for loaderDeps
bigint but I have troubles with loaderDeps: https://stackblitz.com/edit/tanstack-router-pajud2x2?file=src%2Froutes%2F__root.tsx&preset=node (click on About in nav)
Do not know how to serialize a BigIntI see that the error is coming from the
loaderDeps implementation which tries to JSON.stringify the search object. Is there a way to customize this behavior?...Redirect to same route
search object it doesn't keep the search parameter from the redirect. I have tried with my mask and without it.
```ts
beforeLoad: async ({ search }) => {
console.log({ beforeLoad: search });...How do I debug route tree generation errors?
Error: expected identifier to be present
at file:///home/user/project-name/node_modules/@tanstack/router-generator/dist/esm/generator.js:152:19
Error: expected identifier to be present
at file:///home/user/project-name/node_modules/@tanstack/router-generator/dist/esm/generator.js:152:19
Storing state in search params
Also, I noticed that on wrapping the navigate() in a startTransition, 'isTransitioning' is never true. The navigation just happens silently and my loading spinner inside the search input never triggers....
Could not find match for from: /pardavejai/$publicFreelancerProfileName/ or basically any link

retainSearchParams
Problem with navigating to same route
@tanstack/react-routerfrom version 1.120.13 to version 1.121.34 I have a problem when trying to navigate using to: '.' option in navigate from useNavigate (for Link component works the same). From what I've been able to determine, the router tries to redirect to basepath after calling navigate with to : '.'.
I found that this issue was related to that but it doesnt resolve my problem https://github.com/TanStack/router/pull/4472.
I prepare some demo to show the problem. To reproduce the issue go to Map and click on button open panel it than redirect you to the index route.
https://codesandbox.io/p/sandbox/tanstack-router-bug-example-j4qlpj...