-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createMatchSelector typedef string or object? #258
Comments
Would also like to see some documentation surface. The readme leaves me thinking this library doesn't have support for route params. |
Current typedef does not cover all valid usecases. connected-react-router/index.d.ts Lines 73 to 75 in f275126
The connected-react-router/src/selectors.js Line 34 in d2f0bb0
In the |
`path` parameter should match parameter of the underlying `matchPath` fix #258
There isn't much documentation on
createMatchSelector
but in other places eg #38, the parameter is an object:const matchSelector = createMatchSelector({ path: '/course/:id })
The typedef added in #235 expects a string.
I believe the typedef is incorrect. My understanding of the code is that this parameter is provided as the second parameter in react-router's
matchPath
which expects an object https://github.com/ReactTraining/react-router/blob/master/packages/react-router/docs/api/matchPath.mdCan anyone else confirm that this typedef is incorrect?
The text was updated successfully, but these errors were encountered: