The solution was pretty simple. A HOC that checks for a child route. If found it renders an Outlet. Otherwise it renders the current route.
The solution was pretty simple. A HOC that checks for a child route. If found it renders an Outlet. Otherwise it renders the current route.
We migrated to tanstack router for a few months before moving to start (work is complete but not merged to main)
The hardest part for us was how we treated nested routes. We nested logically but not visibly.
We migrated to tanstack router for a few months before moving to start (work is complete but not merged to main)
The hardest part for us was how we treated nested routes. We nested logically but not visibly.
I've migrated two apps now with very positive results.
1) 25 route Next app - This went very smoothly - no issues.
2) 150+ route Vite SPA. Trickier, since we have uses of `window` sprinkled throughout.
Only issue is with HMR in both, but I haven't investigate.
I've migrated two apps now with very positive results.
1) 25 route Next app - This went very smoothly - no issues.
2) 150+ route Vite SPA. Trickier, since we have uses of `window` sprinkled throughout.
Only issue is with HMR in both, but I haven't investigate.