Skip to content

Instantly share code, notes, and snippets.

@CarlMungazi
Created December 21, 2018 18:29
Show Gist options
  • Save CarlMungazi/d751bcb57be9b47e269035f4e5170395 to your computer and use it in GitHub Desktop.
Save CarlMungazi/d751bcb57be9b47e269035f4e5170395 to your computer and use it in GitHub Desktop.
unbatchedUpdates
// Initial mount should not be batched.
unbatchedUpdates(function () {
if (parentComponent != null) {
root.legacy_renderSubtreeIntoContainer(parentComponent, children, callback);
} else {
root.render(children, callback);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment