T
TanStack15mo ago
united-yellow

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
deep-jade
deep-jade15mo ago
check the docs
deep-jade
deep-jade15mo 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
deep-jade15mo 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
deep-jade
deep-jade15mo 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?