pendingComponent, Loader, ensureQueryData — What’s happening with navigation?
Hey! I’m seeing a noticeable delay when navigating between routes that have a loader doing a query prefetch. The route does have a
Is this expected behavior with the combination of
And if this is the expected flow, is there any recommended approach to make the navigation feel more fluid?
This happens regardless of the
Thanks!
pendingComponent, but when I click to navigate, the browser immediately updates the URL while the actual screen only switches ~1 second laterIs this expected behavior with the combination of
pendingComponent + loader + ensureQueryData? Or does this indicate some issue in my setup?And if this is the expected flow, is there any recommended approach to make the navigation feel more fluid?
This happens regardless of the
ssr setting on the route false, true, or "data-only". The delay is always there. In the video I’m attaching, I’m artificially delaying the query by 6 seconds so the behavior is easier to seeThanks!