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
deep-jade•15mo ago
check the docs
deep-jade•15mo 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
deep-jade•15mo 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 routedeep-jade•15mo 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