Replies: 2 comments
-
This is now superseded by #9546 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Locked in favor of ^ |
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
-
In v5, a dynamic URL parameter could be optional if a trailing
?
is added to theRoute
component'spath
:This doesn't work quite the same in v6. To achieve something similar, you'd need to use nested routes with
<Outlet />
:Many users have expressed that this change requires some significant refactoring to their apps, and that bringing back support for the v5 API for optional params would be a simpler solution for them. See the original issue here.
To consider this potential change, I'd start by asking: would simply changing the way the v6 matching algorithm works with a trailing
?
potentially break existing v6 apps?Beta Was this translation helpful? Give feedback.
All reactions