You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using new version v7.2.0, the page gets rendered even if we return or throw a redirect in the clientLoader. See that there is an error in the console as the Home page tries to read the loader data.
Seeing this as well with 7.2.0 with SPA mode. It's working as expected on 7.1.5. We redirect from our index route if the user is authenticated and we're getting a flash of that route before it redirects, as though the app isn't waiting for the index's clientLoader to finish before rendering.
I'm using React Router as a...
framework
Reproduction
https://stackblitz.com/edit/github-vapjjyhs?file=app%2Froutes%2Fhome.tsx
Using new version v7.2.0, the page gets rendered even if we return or throw a redirect in the clientLoader. See that there is an error in the console as the Home page tries to read the loader data.
This was working in previous versions.
System Info
Used Package Manager
npm
Expected Behavior
If a redirect is returned/thrown in the clientLoader the page doesn't get rendered.
Actual Behavior
If a redirect is returned/thrown in the clientLoader the page gets rendered.
The text was updated successfully, but these errors were encountered: