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?


4 Replies
eastern-cyan•2y ago
check the docs
eastern-cyan•2y 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•2y 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 routeeastern-cyan•2y 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