mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Merge pull request #878 from spicyj/mount-unmounted
Improve "Can only mount when umounted" message
This commit is contained in:
@@ -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