500ms delay loading lazy routes
I just followed the react getting started guide and noticed that there's a 500ms delay on loading the default index and the about route. I fired up react profiler and it shows
Memo(MatchInnerImpl) suspended during mount
it lasts for ~500ms before rendering the route. Is this normal or am I missing something? 500 ms delay to render an almost empty component seems too high.
Code here:
https://stackblitz.com/edit/vitejs-vite-gfcz4b?file=src%2Fmain.tsxRichmond Macaspac
StackBlitz
TanStack Router perf (forked) - StackBlitz
Next generation frontend tooling. It's fast!

1 Reply
extended-salmonOP•13mo ago
https://github.com/TanStack/router/issues/2183 It seems like it's a similar issue. setting
pendingMinMs: 0
did the fix for now.GitHub
beforeLoad
adds ~400ms delay on page reload · Issue #2183 · TanSt...Describe the bug When adding beforeLoad to a route (even an empty one), the router gets mounted and then displays a white page for approx. 400ms before the actual page is rendered. Your Example Web...