Best way to handle guarding routes based on user's permissions? #226
Unanswered
peterchappy
asked this question in
Q&A
Replies: 1 comment
-
here's what i do, for what it's worth:
|
Beta Was this translation helpful? Give feedback.
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.
-
I'm curious with
react-location
what is the best way to handle dynamic routes based on the user's role? Inreact-router
there is a few ways to peel that potato, but it's pretty straight forward given the nature of declaring routes as components. Considering thatreact-location
constructs the router from an object I'm wonder what the community thinks the best way to handle this is as I don't see an example in the docs.Beta Was this translation helpful? Give feedback.
All reactions