Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(router): Expose the default matcher for
Routes
used by the `Ro…
…uter` (#46913) This commit adds the `defaultUrlMatcher` from the Router to the public API. `UrlMatcher` and `UrlMatchResult` are already in the public api so the signature of the function as well as the return value are already exposed. Any change to those or the implementation of `defaultUrlMatcher` would already be breaking so there's no additional risk in exposing the default matcher. This function can be useful for developers who want to create a custom matcher which builds on the default matcher of the Router. Currently, the only way to do this would be to copy-paste the implementation. fixes #35928 PR Close #46913
- Loading branch information
1 parent
55febc1
commit 8600732
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters