diff --git a/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js b/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js index 7a02c1904a7f6..75f5dc7922d20 100644 --- a/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js +++ b/src/renderers/shared/stack/reconciler/ReactCompositeComponent.js @@ -741,6 +741,13 @@ var ReactCompositeComponentMixin = { nextUnmaskedContext ) { var inst = this._instance; + invariant( + inst != null, + 'Attempted to update component `%s` that has already been unmounted ' + + '(or failed to mount).', + this.getName() || 'ReactCompositeComponent' + ); + var willReceive = false; var nextContext; var nextProps;