-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Switch to parent-based context. Fixes #2112. #3615
Conversation
Can we add a new test that would have failed with owner-based context? |
7ea834a
to
e5c2146
Compare
Yep, good idea, done. |
Seems like |
@mridgway That's a super easy change, but I'd like to separate functional changes from cleanup changes (which don't affect functionality) to make code reviews easier. That way, someone has a chance of actually understanding what's going on in any given commit (removing _context will touch a bunch of lines, making it harder to read the PR). If @spicyj would like it to be part of the same commit, I'll go ahead and amend. |
e5c2146
to
a51686b
Compare
Having all the cleanup in one commit is preferable to me. |
a51686b
to
7d44917
Compare
Ok, easy money, done. |
If you do the cleanup in a separate commit and revert this change then the reverted changes won't function correctly unless you revert the cleanup as well. Seems like it creates unnecessary dependencies between commits. |
Cherry-picking reverts can be exceedingly difficult anyway, because people inevitably touch the same code (especially when you have huge commits, you're likely to overlap/conflict somewhere, and merging commits exacerbates the problem). So it's a loose-loose situation. Regardless, it's a style difference, I don't have a strong preference either way, already fixed it as per @spicyj. |
I kind of prefer functional changes in a separate commit too, although since PRs allow multiple commits they could be merged. Accepted, but DON'T land until we've solved the layers issue since that will get this reverted. |
What's the issue with layers? Can I read about it somewhere? |
Nope, it is an internal FB issue. |
Basically, there is no way to pass a context to a new subtree - which was also true before but some people hacked around it so we have to undo those hacks. |
Ah, the mystical |
Layer issue is solved, pending a final review and sync with www. |
Switch to parent-based context. Fixes #2112.
Well ideally we should land that (and prepare the callers) first since we won't be able to sync React internally now.
|
0.13.3 only includes 0.13 plus individually cherry-picked commits; 0.14 will include everything that's currently in master. |
Thanks for the info, Sorry if this info is elsewhere, but does anyone have an idea about how soon 0.14 might go out? |
After the things in #3220 get done. |
Just wanted to say THANK YOU to @jimfb and everyone else who worked on this change. This feels like the right way to go. |
Switch to parent-based context. Fixes #2112.