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
For the kitchen sink example, after turning on React Strict Mode and entering /profile route, location.href becomes /login?redirect=%2Flogin%3Fredirect%3D%252Fprofile. Should be /login?redirect=%2Fprofile. It's also reflected in the URL bar.
Side question, is it recommended to use beforeLoad to redirect from /login if user is already logged in instead of useLayoutEffect?
the wrong URL shows up when you enter /profile route via the address bar and not link click. it should just be /login?redirect=%2Fprofile. my bad, could have been clearer.
Describe the bug
For the kitchen sink example, after turning on React Strict Mode and entering
/profile
route,location.href
becomes/login?redirect=%2Flogin%3Fredirect%3D%252Fprofile
. Should be/login?redirect=%2Fprofile
. It's also reflected in the URL bar.Side question, is it recommended to use
beforeLoad
to redirect from/login
if user is already logged in instead ofuseLayoutEffect
?Your Example Website or App
https://tanstack.com/router/v1/docs/examples/react/kitchen-sink-react-query-file-based
Steps to Reproduce the Bug or Issue
See description
Expected behavior
See description
Screenshots or Videos
No response
Platform
NA
Additional context
No response
The text was updated successfully, but these errors were encountered: