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 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-router
from 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...(SOLVED) How to make a custom link with an active className
Dynamic Route + Static Match

Unable to navigate within a useEffect

keepPreviousData with useSuspenseQuery
set route state from loader funtion
Implementing .well-known route (escaping .)
Tearing my hair out... route groups misunderstanding? );
For context, simple routing stuff was working, but we want to use slugs for some things so I overhauled the structure some to try and use more best practices.The screenshot shows my current layout....

Netlify dev fails when including a spa redirect
netlify build
netlify build
netlify dev
netlify dev
Would there be interest for adding `sherif` to the tanstack/router monorepo?
pnpx sherif
. No config, no install, doesn't even need node_modules....