diff --git a/src/renderers/shared/reconciler/ReactEmptyComponent.js b/src/renderers/shared/reconciler/ReactEmptyComponent.js index 715dece5f1..ef662478a4 100644 --- a/src/renderers/shared/reconciler/ReactEmptyComponent.js +++ b/src/renderers/shared/reconciler/ReactEmptyComponent.js @@ -25,6 +25,10 @@ var ReactEmptyComponentInjection = { }, }; +function registerNullComponentID() { + ReactEmptyComponentRegistry.registerNullComponentID(this._rootNodeID); +} + var ReactEmptyComponent = function(instantiate) { this._currentElement = null; this._rootNodeID = null; @@ -34,7 +38,7 @@ assign(ReactEmptyComponent.prototype, { construct: function(element) { }, mountComponent: function(rootID, transaction, context) { - ReactEmptyComponentRegistry.registerNullComponentID(rootID); + transaction.getReactMountReady().enqueue(registerNullComponentID, this); this._rootNodeID = rootID; return ReactReconciler.mountComponent( this._renderedComponent,