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

componentWillReceiveProps -> initialize should use nextProps #1

Open
adascal opened this issue Jan 22, 2018 · 0 comments
Open

componentWillReceiveProps -> initialize should use nextProps #1

adascal opened this issue Jan 22, 2018 · 0 comments

Comments

@adascal
Copy link

adascal commented Jan 22, 2018

I've analyzed your code and found that you should pass nextProps to initialize function inside componentWillReceiveProps. It has no sense to initialize it with old props (this.props)

ref:

this.initialize(this.store, this.props);

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

No branches or pull requests

1 participant