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

Do not setState in container unless component is mounted #265

Merged
merged 1 commit into from
Apr 5, 2015

Conversation

oliverwoodings
Copy link
Contributor

Just came across a scenario where a store update caused the container to try and call setState when it was no longer mounted. This PR ensures setState is not called from onStoreChanged unless the container is currently mounted.

jhollingworth added a commit that referenced this pull request Apr 5, 2015
Do not setState in container unless component is mounted
@jhollingworth jhollingworth merged commit d44776e into master Apr 5, 2015
@jhollingworth jhollingworth deleted the fix/setstate-mounted branch April 5, 2015 17:02
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.

2 participants