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 a bug with memoizedState affecting React DevTools #9886

Merged
merged 2 commits into from
Jun 7, 2017

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jun 7, 2017

#9580 accidentally added a branch that didn’t memoize state for the root.
DevTools relies on root's memoizedState to tell if we're mounting or unmounting.
This should fix it.

Test plan: verified this fixes an issue in another app I'm debugging with a version from master.

Copy link
Collaborator

@sebmarkbage sebmarkbage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gaearon gaearon merged commit 80fffbe into master Jun 7, 2017
@gaearon gaearon deleted the gaearon-patch-9 branch June 7, 2017 23:57
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.

None yet

3 participants