Closed
Description
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:
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.
Metadata
Metadata
Assignees
Labels
No labels