T
TanStack2y ago
conscious-sapphire

Lazy file routes don't have the same config as regular file routes?

Most of the configuration options for a route are gone in lazy file route. Why do we have to trade these features when code splitting?
No description
No description
4 Replies
eastern-cyan
eastern-cyan2y ago
check the docs
eastern-cyan
eastern-cyan2y ago
Code Splitting | TanStack Router React Docs
Code splitting and lazy loading is a powerful technique for improving the bundle size and load performance of an application. Reduces the amount of code that needs to be loaded on initial page load
eastern-cyan
eastern-cyan2y ago
Critical Route Configuration vs Non-Critical/Lazy Route Configuration if you need e.g. beforeLoad, you need both a lazy and and a non-lazy route
eastern-cyan
eastern-cyan2y ago
Code Splitting | TanStack Router React Docs
Code splitting and lazy loading is a powerful technique for improving the bundle size and load performance of an application. Reduces the amount of code that needs to be loaded on initial page load

Did you find this page helpful?