3 Replies
wise-white•16mo ago
One is for code based routing and one is for file based routing
harsh-harlequinOP•16mo ago
Aren't they both for code based routing? https://tanstack.com/router/latest/docs/framework/react/guide/code-splitting#code-based-splitting
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
fascinating-indigo•16mo ago
You can use createLazyRoute for the code-based approach. You'll basically be replicating the file-based routing approach but manually doing the connections using code-based.