redirect not working when using it with loader #10455
Replies: 1 comment 1 reply
-
import { redirect } from "react-router-dom" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this authentication function:
Now I am using this function inside loader, for making protected routes
And here's the code for
hostVansLoader
Issue is even though
isLoggedIn = false
, it is not being redirected to/login
route. On clicking thedashboard
it will open the dashboard page, but if I manually type the url in browser then it will redirect to "/login" pageBeta Was this translation helpful? Give feedback.
All reactions