Skip to content

Commit

Permalink
Improve error message for components in bad states (missing instance) (
Browse files Browse the repository at this point in the history
  • Loading branch information
yungsters committed Jun 8, 2016
1 parent 1abce16 commit 7988aca
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7988aca

Please sign in to comment.