mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Improve "Can only mount when umounted" message
This commit is contained in:
1 parent
ad6a982cd0
commit
2f027fce2d
1 file changed
+3
-1
@@ -321,7 +321,9 @@ var ReactComponent = {
|
||||
mountComponent: function(rootID, transaction, mountDepth) {
|
||||
invariant(
|
||||
!this.isMounted(),
|
||||
'mountComponent(%s, ...): Can only mount an unmounted component.',
|
||||
'mountComponent(%s, ...): Can only mount an unmounted component. ' +
|
||||
'Make sure to avoid storing components between renders or reusing a ' +
|
||||
'single component instance in multiple places.',
|
||||
rootID
|
||||
);
|
||||
var props = this.props;
|
||||
|
||||
Reference in new issue
Block a user