Replies: 3 comments 1 reply
-
How "trivial" do you need it be? Just validate and throw in a loader. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is my workaround, but it's not very developer-friendly as it adds a lot of boilerplate code. For routes with dynamic paths, it would be nice to explicitly set a whitelist using react-router. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to know if it is possible to enforce a list of allowed
:id
for a route without triggering theerrorComponent
, for any other values theerrorComponent
should be displayed. See below:In this case
:viewId
should only be allowed to take the following values:x
y
z
Is there a trivial way of achieving this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions