aboutsummaryrefslogtreecommitdiff
path: root/node_modules/react-dom/lib/ReactUpdateQueue.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/react-dom/lib/ReactUpdateQueue.js')
-rw-r--r--node_modules/react-dom/lib/ReactUpdateQueue.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/node_modules/react-dom/lib/ReactUpdateQueue.js b/node_modules/react-dom/lib/ReactUpdateQueue.js
index 96b42fb5b..f1fda7c8d 100644
--- a/node_modules/react-dom/lib/ReactUpdateQueue.js
+++ b/node_modules/react-dom/lib/ReactUpdateQueue.js
@@ -51,7 +51,7 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
}
if (process.env.NODE_ENV !== 'production') {
- process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + 'within `render` or another component\'s constructor). Render methods ' + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
+ process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + "within `render` or another component's constructor). Render methods " + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
}
return internalInstance;
@@ -62,7 +62,6 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
* reconciliation step.
*/
var ReactUpdateQueue = {
-
/**
* Checks whether or not this composite component is mounted.
* @param {ReactClass} publicInstance The instance we want to test.
@@ -229,7 +228,6 @@ var ReactUpdateQueue = {
validateCallback: function (callback, callerName) {
!(!callback || typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
}
-
};
module.exports = ReactUpdateQueue; \ No newline at end of file