T
TanStack10mo ago
rising-crimson

Migrating from React Router is Code-based Routing or Virtual Routing best choice?

We have a large multi-page app that we are converting page by page into a SPA. We started with React router, but have run into some problems and want to try TanStack. We can't use file based routing and all the identifying information for each page is in its search parameters (ie: ?id=xyz&tab=content). We would like to lazy load components as they are routed to since these are pretty heavy pages with lots of components and requests waterfalls that we only want to load when actually needed. What routing solution is recommended when there is an actual file component for each page or route but file based routing won't work?
1 Reply
dependent-tan
dependent-tan10mo ago
what do you mean by "actual file component"? why cant you use file based routing? some more details would help

Did you find this page helpful?