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
deep-jadeOP•6mo ago
Does not feel slow if I start from / root, and start navigating through my application
optimistic-gold•6mo 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...
deep-jadeOP•6mo ago
Thanks!