Closed grayontheweb closed 8 years ago
Using this starter kit as a launching point and noticed this issue. Currently src/containers/LocalCounter.jsx is exporting a connect function with an object containing the mapStateToProps and mapDispatchToProps functions:
src/containers/LocalCounter.jsx
export default connect({ mapStateToProps, mapDispatchToProps })(LocalCounter)
This raises a TypeError for me and was fixable by passing two function arguments rather than an object containing them:
export default connect( mapStateToProps, mapDispatchToProps )(LocalCounter)
Thanks @grayontheweb -- could you submit a pull request with your fix?
Sure, no problem.
Using this starter kit as a launching point and noticed this issue. Currently
src/containers/LocalCounter.jsx
is exporting a connect function with an object containing the mapStateToProps and mapDispatchToProps functions:This raises a TypeError for me and was fixable by passing two function arguments rather than an object containing them: