TanStackT
TanStack2y ago
7 replies
developed-pink

defaultPendingComponent shown for routes that have no loader specified

See this reproduction: https://stackblitz.com/edit/tanstack-router-mbfafp?file=src%2Fmain.tsx

Even if I have no loader specified, the 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?
StackBlitzDominik Dorfmeister
Run official live example code for Router Quickstart File Based, created by Tanstack on StackBlitz
Router Quickstart File Based Example (forked) - StackBlitz
Was this page helpful?