Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PrivateRoute in Routes #8186

Closed
goshua13 opened this issue Nov 3, 2021 · 1 comment
Closed

PrivateRoute in Routes #8186

goshua13 opened this issue Nov 3, 2021 · 1 comment

Comments

@goshua13
Copy link

goshua13 commented Nov 3, 2021

v6 beta8

"^6.0.0-beta.8",

https://codesandbox.io/s/lucid-wind-krczw?file=/src/gameComponent.jsx

this codesandbox should block the route is isAuth is set to false in App.js, but the PrivateRoute component wont render correctly in Beta8 if you switch it to Beta 0 then it works correctly.

Switch to Beta0 for correct behavior on blocking routes

Switch to Beta8 for BAD behavior on blocking routes

@timdorr
Copy link
Member

timdorr commented Nov 3, 2021

#8111 (comment)

and

#8092 (comment)

@timdorr timdorr closed this as completed Nov 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants