Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Supporting url-pattern custom pattern syntax #107

Open
sehcheese opened this issue Oct 17, 2016 · 0 comments
Open

Supporting url-pattern custom pattern syntax #107

sehcheese opened this issue Oct 17, 2016 · 0 comments

Comments

@sehcheese
Copy link

url-patterns supports custom pattern syntax (doc). redux-little-router does not use url-pattern directly, but does use its syntax. If I use the default url-pattern syntax, I am able to access state.router.params, which has the parameters parsed from the URL. However, if I use a UrlPattern with custom syntax, state.router.params is undefined. I can accomplish the same effect by using urlPattern.match(state.router.pathname), but that requires importing my UrlPattern wherever I need to do that. It would be great if redux-little-router supported custom syntax in UrlPatterns, maybe as an additional parameter in routerForBrowser?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants