TanStackT
TanStack15mo ago
7 replies
living-lavender

Render optimizations with loader/deps

Hey,
I'm trying to understand the render optimizations with the fine-grained selectors.
I noticed that as soon as you add loader deps this breaks.
Changing loader deps will re-run the loader with a cause value of enter and everything will re-render.

Here a StackBlitz: https://stackblitz.com/edit/tanstack-router-b7z2d8?file=src%2Froutes%2Findex.tsx

Is this intended behavior?
StackBlitzFynn Path
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?