T
TanStack3mo ago
quickest-silver

How can i display a loading component for a page?

I notice that when i enter a nested url of my app in the browser tab and i go to it, it takes very long time to load the page (because of prefetch etc...). Is it possible to show some short of loading component? (example: nextjs has this loading.tsx) - do Tanstack router have something equalivaten?
3 Replies
quickest-silver
quickest-silverOP3mo ago
Does not feel slow if I start from / root, and start navigating through my application
ratty-blush
ratty-blush3mo ago
Deferred Data Loading | TanStack Router React Docs
TanStack Router is designed to run loaders in parallel and wait for all of them to resolve before rendering the next route. This is great most of the time, but occasionally, you may want to show the u...
quickest-silver
quickest-silverOP3mo ago
Thanks!

Did you find this page helpful?