Skip to content

Fix context getting #8407

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

Merged
merged 1 commit into from
Nov 29, 2016
Merged

Fix context getting #8407

merged 1 commit into from
Nov 29, 2016

Conversation

sophiebits
Copy link
Collaborator

No description provided.

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.

Guessing you'll need to fix Flow.

@gaearon
Copy link
Collaborator

gaearon commented Nov 24, 2016

What does this fix? Is there a failing test we need to add?

@sophiebits
Copy link
Collaborator Author

Two bugs: When the immediate parent isn't a context provider but an ancestor is, or if a layer has no context providers but does have context from its parent and then it creates a sublayer. I'll probably add tests but hopefully we can delete this code soon.

@sophiebits sophiebits merged commit 492057c into facebook:master Nov 29, 2016
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
laurinenas pushed a commit to laurinenas/react that referenced this pull request May 28, 2018
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