Repository navigation
Replies: 1 comment
|
For a file-generated route tree, put restricted routes under a pathless layout and check permissions in its |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, if you're using file-based routing, all the routes you create are automatically registered. In some admin dashboard applications with access control, you typically need to perform both login and permission checks for route access. However, if we can dynamically register routes based on conditions, you only need to perform a login check—unauthorized routes won't be registered at all, so accessing them will result in a 404 page.
All reactions