Best of tanstack — 2024
- 1
- 2
swizec.com·2y
Tips from 8 months of TanStack/Router in production
The post shares battle-tested patterns and lessons from using TanStack Router in production, emphasizing type-safe routing, router-coordinated data loading, and a design that minimizes UI loading states. The app follows file-based routing to mirror URL structure and focuses on supporting multi-tasking, easy context sharing, and unguided navigation for power users. The author highlights the importance of treating horizontal concerns as libraries, leveraging data loaders for whole pages, and using suspense queries for individual components to optimize performance.