Skip to content

Fix a bug where mapDispatchToProps was called at wrong time

Compare
Choose a tag to compare
@titouancreach titouancreach released this 15 Jan 15:11
· 176 commits to master since this release
85ee3a4

MapDispatchToProps was called when the component was mounted. But if mapDispatchToProps updated, Provider didn't know and keep calling the wrong function. Now, mapDispatchToProps is directly called from the props.