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 the context handling when updating a rendered component. #3494

Merged
merged 1 commit into from
Mar 25, 2015
Merged

Fix the context handling when updating a rendered component. #3494

merged 1 commit into from
Mar 25, 2015

Conversation

letiemble
Copy link
Contributor

When a component is re-rendered, the context is not properly processed for children. The new test-case demonstrates it: with the current code base, 2 warnings are emitted because of the context mismatch.

Note: this PR is based on the comments of the issue #3404.

I have accepted the CLA.

@zpao
Copy link
Member

zpao commented Mar 25, 2015

Thanks! I'm going to let @JSFB and @spicyj review from here.

@jimfb
Copy link
Contributor

jimfb commented Mar 25, 2015

Looks correct to me. Good catch.

jimfb added a commit that referenced this pull request Mar 25, 2015
Fix the context handling when updating a rendered component.
@jimfb jimfb merged commit 13dbda3 into facebook:master Mar 25, 2015
zpao added a commit that referenced this pull request Mar 25, 2015
PR #3494 was based on master before we shifted to using console.error. This
just fixes the new test case.
@sophiebits sophiebits added this to the 0.13.2 milestone Apr 7, 2015
zpao pushed a commit to zpao/react that referenced this pull request Apr 13, 2015
Fix the context handling when updating a rendered component.
zpao pushed a commit to zpao/react that referenced this pull request Apr 17, 2015
Fix the context handling when updating a rendered component.
zpao pushed a commit to zpao/react that referenced this pull request Apr 18, 2015
Fix the context handling when updating a rendered component.
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.

4 participants