Replies: 2 comments 5 replies
-
We have an app (with v5 router) that serves different companies with users with different levels of access. We need to be able to change the routing based on user level (companyEmployee, companyGroupAdmin, CompanyAdmin, admin, root) and Company itself. How do I manage that with createBrowserRouter? Also we need to block navigation in some situation and unstable_usePrompt doesn't seem to work. this may be due to dynamically creating routes with Routes/Route-components. |
Beta Was this translation helpful? Give feedback.
-
In v6, If you are using It's on the list to get some |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
basically:
if user not logged in
-> Router with Login/Signup/Etc public routes
else
-> Router -> Root Element -> Nested Application Routes
possible in v6? couldn't find anything in the docs, i'm coming from v4
Beta Was this translation helpful? Give feedback.
All reactions