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
I'm looking to set up the router to have this flow:
If logged out then show Login/Register route
if logged in then show Home route
Can anyone give me some hints what I need to set up for that to happen?
Should I make a constructor that checks to see if an user is logged in/out then set the initial={true} or {false}? Or should I rather redirect based on actions?