Skip to content
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

fix: mapStateToProps 缺少第二个参数ownProps #555

Merged
merged 1 commit into from
Aug 31, 2018

Conversation

ronffy
Copy link
Contributor

@ronffy ronffy commented Aug 31, 2018

mapStateToProps与 react-redux 的 mapStateToProps方法使用有差异,缺少第二个参数ownProps

`mapStateToProps`与 react-redux 的 `mapStateToProps`方法使用有差异,缺少第二个参数ownProps
@luckyadam luckyadam merged commit c3dc5d1 into NervJS:master Aug 31, 2018
@luckyadam
Copy link
Member

非常棒啊!

@SherlockHomer
Copy link

回答“非常棒啊!”?问题并没有解决吧
2.0.0-beta.13
源码里:const mapState = mapStateToProps(store.getState(), Component.defaultProps || {})
很明显就错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants