Replies: 1 comment 4 replies
-
This is intentionally not exposed to reduce API surface and allow internal changes without breaking changes for users. I have thought of exposing some of these APIs separately but I'm not 100% sure about allowing a Why do you need to extract params of a route param for? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem is this solving
The RouterMatcher which can be created by createRouterMatcher allows us to extract metadata like the params of a route which are otherwise inaccessible inside Router (RouteRecordNormalized vs RouteRecordMatcher). Currently there is no way (known to me) to provide an existing RouterMatcher to createRouter or access it inside the Router object.
Proposed solution
Describe alternatives you've considered
As a workaround it is currently possible to create router and routerMatcher separately and use addRoute on both of them whenever needed. This leads to two identical RouterMatcher objects which i want to avoid.
Beta Was this translation helpful? Give feedback.
All reactions