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

Caution (in docs) against dispatching redux actions or triggering component updates by any other means in componentWillUpdate #9694

Closed
wants to merge 1 commit into from

Conversation

jedwards1211
Copy link
Contributor

I just experienced really confusing errors that were happening because of an old component I wrote that was dispatching Redux actions during its componentWillUpdate. The docs only warn that we can't call setState during componentWillUpdate, but I assume that causing component updates by any other means is likewise a bad idea, so I want to warn other devs about it in the official docs.

@jedwards1211 jedwards1211 changed the title Warn against dispatching redux actions or triggering component updates by any other means in componentWillUpdate Caution (in docs) against dispatching redux actions or triggering component updates by any other means in componentWillUpdate May 15, 2017
@bvaughn
Copy link
Contributor

bvaughn commented Oct 6, 2017

Thank you for submitting this PR! 😄

Unfortunately the documentation and source code for reactjs.org has been moved to a different repository: https://github.com/reactjs/reactjs.org

If you are willing, please open a new PR there. Sorry for the inconvenience!

(For more backstory on why we moved to a new repo, see issue #11075)

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

Successfully merging this pull request may close these issues.

4 participants