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
constHomeRoute=createRoute({path: "/",// does not trigger any route events if `filter` is falsyfilter: $isAuthenticated,});// Show some other pageconstLoginRoute=createRoute({path: "/",filter: $isAuthenticated.map(isAuthenticated=>!isAuthenticated),});constApp=()=>(<Switch><LoginRoute><LoginPage/></LoginRoute><HomeRoute><HomePage/></HomeRoute></Switch>);// Or redirect to some other pageconstNotAuthenticatedRoute=createRoute({path: "/",filter: $isAuthenticated.map(isAuthenticated=>!isAuthenticated),});constLoginRoute=createRoute({path: "/login",});sample({source: NotAuthenticatedRoute.open,target: LoginRoute.navigate});
Custom complex logic on top of filter (handling of auth, access control, and feature flags at the same time)
filter
filter
(handling of auth, access control, and feature flags at the same time)The text was updated successfully, but these errors were encountered: