-
Notifications
You must be signed in to change notification settings - Fork 47.1k
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
Batch updates caused by handlers in multiple roots #1231
Conversation
I'm assuming but want to confirm - this fixes the layers bug we were talking about on Thursday? |
No, it doesn't. Still a good idea though. |
var parentControl = <div>Parent</div>; | ||
ReactMount.renderComponent(childControl, childContainer); | ||
ReactMount.renderComponent(parentControl, parentContainer); | ||
parentControl.getDOMNode().appendChild(childContainer); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you rebase and update for descriptors. This isn't going to be the right thing anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Fixes facebook#1227. It seems rare that event handlers in two roots nested in the DOM will update the same component in the same tick, but if that happens, the updates should be batched together.
Batch updates caused by handlers in multiple roots
Fixes #1227.
It seems rare that event handlers in two roots nested in the DOM will update the same component in the same tick, but if that happens, the updates should be batched together.