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
Pending component not showing on beforeLoad on rootRoute
How to get a dynamic route path without the dynamic part?
Relay
Trying to set up global context and running into errors
Possible to make child route's `beforeLoad()` not run when parent route throws a redirect?
/accounts/$accountId/route.tsx
* /accounts/$accountId/settings/billing.tsx
We use route param placeholders so we can link to account routes from emails, e.g. to /accounts/_/settings/billing
and we replace the _
value with the currently logged in $accountId
....Recommended Path Segment
hello
- hello/foo
- hello/bar
- hello/fee
...Are there workarounds for using validateSearch with lazy file routes?
validateSearch
alongside lazy-loaded routes (createLazyFileRoute
). I get why it's not possible, but, wondering if there's a preferred work-around or some magic cooking to make validation possible once a lazy route file has loaded. 🙏 Thanks all!
How do I pass queryClient throughout my app with tanstack router/query
Following TanStack Start tutorial / Playing with example and app won't start
(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling.
when playing around with this tutorial https://tanstack.com/router/latest/docs/framework/react/start/getting-started. Downloaded the project from Stackblitz as well and it still won't open up. What could be the issue?Deeply passing down context
fetch
which automatically retrieves an access token via another hook. Within previous custom useQuery()
hooks, I could just use that hook, since everything was React hooks.
Now within TanStack Router, I don't have that option anymore. I know that I can pass the hook result through context and then pass the wrapped fetch function through to *QueryOptions()
methods, but that seems extremely repetitive.
Is there a better make the result of my original hook available to all my fetch*()
functions without having to pass it down in every single place?...useMatchRoute and useLocation are not in sync
Dynamic Nav?
500ms delay loading lazy routes
Memo(MatchInnerImpl) suspended during mount
it lasts for ~500ms before rendering the route. Is this normal or am I missing something? 500 ms delay to render an almost empty component seems too high.
Code here:
https://stackblitz.com/edit/vitejs-vite-gfcz4b?file=src%2Fmain.tsx...
Is there an example with TanStack Router and Clerk somewhere?
Link search without from
Loader causes re-render sometimes
Can't generate route tree
[vite] Internal server error: Failed to resolve import "./routeTree.gen" from "src/index.tsx". Does the file exist?
in a completely normal React Vite project.protected endpoint with lazy loader & directories
_auth.tsx
that uses the guide from Authenticated routes.
How would I move e.g. my /settings
page into a directory but yet keep _auth.tsx
?
...How to use invalidate in hooks (auth Context)

Exported variable 'router' has or is using name 'FileRouteTypes' from external module src/routeTree
Exported variable 'router' has or is using name 'FileRouteTypes' from external module "../src/routeTree.gen" but cannot be named.
This also happens with RouteRootChildren. I see both of these interfaces inside of routeTree.gen.ts
but am not sure how to fix it....