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
defaultPendingComponent shown for routes that have no loader specified
defaultPendingComponent is briefly rendered, and thus sometimes visible. This becomes more obvious when defaultPendingMs is set to zero - we will see the (unnecessary) pending component for half a second (the default of defaultPendingMinMs)
I think the pending component should only be rendered for routes that have a loader, right?...data loading with nested routes
TanStack Router is designed to run loaders in parallel and wait for all of them to resolve before rendering the next route....
directory routes
posts directory with index and $postId.tsx
...pendingComponent of a nested route not used
testing in tanstack-router
Router and app flow
Creating a Styled Component with Link breaks typing
to, params and potentially other props losing their type safety. Using Link by itself works as expected however.
https://codesandbox.io/p/devbox/twilight-mountain-lts8jw
Note the usage of the styled link and how i am able to pass in anything to those values...Navigation bug when tabbing out of browser, maybe?
Wondering how to setup this structure via Directory routes?
How can I change the default "/" route to the index route?
Layout segment still reachable route
/$id/_layout
/$id/_layout/post
...onError does not trigger
about.tsx: https://stackblitz.com/edit/tanstack-router-meaitd?file=src%2Froutes%2F__root.tsx,src%2Froutes%2Fabout.tsx,src%2Froutes%2Findex.tsx
onError never seems to be called....Why can't use errorComponent in createLazyFileRoute?
createLazyFileRoute but the component didn't show up when error happen from loader. But when i put errorComponent in createFileRoute it's working like what i expected (the component show up).
I want to know why it's like that because in https://tanstack.com/router/v1/docs/framework/react/guide/code-splitting errorComponent is supported by the createLazyFileRoute
this is minimal producible example: https://stackblitz.com/edit/tanstack-router-gtkrcc?file=src%2Froutes%2Findex.lazy.tsx
...<Link preload="intent" ...> triggers navigation on hover
to="/", and I can get rid of the error consistently by changing preload={false}.
(Also another weird note, sometimes the <Link> component doesn't let me pass preload={false}. TS error attached)...Navigate to a new tab
Vite Plugin - Code Generation issue
Invalid route is redirecting back to "/"
Best folder structure for code based routing
createLazyFileRoute with loader
loader or beforeLoad function?skip beforeLoad validation