We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some examples were added for factory functions on https://github.com/reactjs/react-redux/blob/master/docs/api.md per #797, but the example for mapDispatchToPropsFactory seems off.
mapDispatchToPropsFactory
Here's the example:
function mapDispatchToPropsFactory(initialState, initialProps) { function goToSomeLink(){ initialProps.history.push('some/link'); } return function(dispatch){ return { addTodo } } }
The function defines goToSomeLink but it's not referenced in any of the return values.
goToSomeLink
The text was updated successfully, but these errors were encountered:
@markerikson
Sorry, something went wrong.
Yeah, wait...wut. I guess I merged that too soon. I'm not a factory user, so my eyes tend to glaze over at these things. Whoops!
No branches or pull requests
Some examples were added for factory functions on https://github.com/reactjs/react-redux/blob/master/docs/api.md per #797, but the example for
mapDispatchToPropsFactory
seems off.Here's the example:
The function defines
goToSomeLink
but it's not referenced in any of the return values.The text was updated successfully, but these errors were encountered: