Edit File by line
/home/barbar84/public_h.../wp-inclu.../js/dist/vendor
File: react.js
/** @license React v16.13.1
[0] Fix | Delete
* react.development.js
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (c) Facebook, Inc. and its affiliates.
[3] Fix | Delete
*
[4] Fix | Delete
* This source code is licensed under the MIT license found in the
[5] Fix | Delete
* LICENSE file in the root directory of this source tree.
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
'use strict';
[9] Fix | Delete
[10] Fix | Delete
(function (global, factory) {
[11] Fix | Delete
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
[12] Fix | Delete
typeof define === 'function' && define.amd ? define(['exports'], factory) :
[13] Fix | Delete
(global = global || self, factory(global.React = {}));
[14] Fix | Delete
}(this, (function (exports) { 'use strict';
[15] Fix | Delete
[16] Fix | Delete
var ReactVersion = '16.13.1';
[17] Fix | Delete
[18] Fix | Delete
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
[19] Fix | Delete
// nor polyfill, then a plain number is used for performance.
[20] Fix | Delete
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
[21] Fix | Delete
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
[22] Fix | Delete
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
[23] Fix | Delete
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
[24] Fix | Delete
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
[25] Fix | Delete
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
[26] Fix | Delete
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
[27] Fix | Delete
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
[28] Fix | Delete
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
[29] Fix | Delete
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
[30] Fix | Delete
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
[31] Fix | Delete
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
[32] Fix | Delete
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
[33] Fix | Delete
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
[34] Fix | Delete
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
[35] Fix | Delete
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
[36] Fix | Delete
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
[37] Fix | Delete
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
[38] Fix | Delete
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
[39] Fix | Delete
var FAUX_ITERATOR_SYMBOL = '@@iterator';
[40] Fix | Delete
function getIteratorFn(maybeIterable) {
[41] Fix | Delete
if (maybeIterable === null || typeof maybeIterable !== 'object') {
[42] Fix | Delete
return null;
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
[46] Fix | Delete
[47] Fix | Delete
if (typeof maybeIterator === 'function') {
[48] Fix | Delete
return maybeIterator;
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
return null;
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
/*
[55] Fix | Delete
object-assign
[56] Fix | Delete
(c) Sindre Sorhus
[57] Fix | Delete
@license MIT
[58] Fix | Delete
*/
[59] Fix | Delete
/* eslint-disable no-unused-vars */
[60] Fix | Delete
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
[61] Fix | Delete
var hasOwnProperty = Object.prototype.hasOwnProperty;
[62] Fix | Delete
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
[63] Fix | Delete
[64] Fix | Delete
function toObject(val) {
[65] Fix | Delete
if (val === null || val === undefined) {
[66] Fix | Delete
throw new TypeError('Object.assign cannot be called with null or undefined');
[67] Fix | Delete
}
[68] Fix | Delete
[69] Fix | Delete
return Object(val);
[70] Fix | Delete
}
[71] Fix | Delete
[72] Fix | Delete
function shouldUseNative() {
[73] Fix | Delete
try {
[74] Fix | Delete
if (!Object.assign) {
[75] Fix | Delete
return false;
[76] Fix | Delete
}
[77] Fix | Delete
[78] Fix | Delete
// Detect buggy property enumeration order in older V8 versions.
[79] Fix | Delete
[80] Fix | Delete
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
[81] Fix | Delete
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
[82] Fix | Delete
test1[5] = 'de';
[83] Fix | Delete
if (Object.getOwnPropertyNames(test1)[0] === '5') {
[84] Fix | Delete
return false;
[85] Fix | Delete
}
[86] Fix | Delete
[87] Fix | Delete
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
[88] Fix | Delete
var test2 = {};
[89] Fix | Delete
for (var i = 0; i < 10; i++) {
[90] Fix | Delete
test2['_' + String.fromCharCode(i)] = i;
[91] Fix | Delete
}
[92] Fix | Delete
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
[93] Fix | Delete
return test2[n];
[94] Fix | Delete
});
[95] Fix | Delete
if (order2.join('') !== '0123456789') {
[96] Fix | Delete
return false;
[97] Fix | Delete
}
[98] Fix | Delete
[99] Fix | Delete
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
[100] Fix | Delete
var test3 = {};
[101] Fix | Delete
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
[102] Fix | Delete
test3[letter] = letter;
[103] Fix | Delete
});
[104] Fix | Delete
if (Object.keys(Object.assign({}, test3)).join('') !==
[105] Fix | Delete
'abcdefghijklmnopqrst') {
[106] Fix | Delete
return false;
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
return true;
[110] Fix | Delete
} catch (err) {
[111] Fix | Delete
// We don't expect any of the above to throw, but better to be safe.
[112] Fix | Delete
return false;
[113] Fix | Delete
}
[114] Fix | Delete
}
[115] Fix | Delete
[116] Fix | Delete
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
[117] Fix | Delete
var from;
[118] Fix | Delete
var to = toObject(target);
[119] Fix | Delete
var symbols;
[120] Fix | Delete
[121] Fix | Delete
for (var s = 1; s < arguments.length; s++) {
[122] Fix | Delete
from = Object(arguments[s]);
[123] Fix | Delete
[124] Fix | Delete
for (var key in from) {
[125] Fix | Delete
if (hasOwnProperty.call(from, key)) {
[126] Fix | Delete
to[key] = from[key];
[127] Fix | Delete
}
[128] Fix | Delete
}
[129] Fix | Delete
[130] Fix | Delete
if (getOwnPropertySymbols) {
[131] Fix | Delete
symbols = getOwnPropertySymbols(from);
[132] Fix | Delete
for (var i = 0; i < symbols.length; i++) {
[133] Fix | Delete
if (propIsEnumerable.call(from, symbols[i])) {
[134] Fix | Delete
to[symbols[i]] = from[symbols[i]];
[135] Fix | Delete
}
[136] Fix | Delete
}
[137] Fix | Delete
}
[138] Fix | Delete
}
[139] Fix | Delete
[140] Fix | Delete
return to;
[141] Fix | Delete
};
[142] Fix | Delete
[143] Fix | Delete
/**
[144] Fix | Delete
* Keeps track of the current dispatcher.
[145] Fix | Delete
*/
[146] Fix | Delete
var ReactCurrentDispatcher = {
[147] Fix | Delete
/**
[148] Fix | Delete
* @internal
[149] Fix | Delete
* @type {ReactComponent}
[150] Fix | Delete
*/
[151] Fix | Delete
current: null
[152] Fix | Delete
};
[153] Fix | Delete
[154] Fix | Delete
/**
[155] Fix | Delete
* Keeps track of the current batch's configuration such as how long an update
[156] Fix | Delete
* should suspend for if it needs to.
[157] Fix | Delete
*/
[158] Fix | Delete
var ReactCurrentBatchConfig = {
[159] Fix | Delete
suspense: null
[160] Fix | Delete
};
[161] Fix | Delete
[162] Fix | Delete
/**
[163] Fix | Delete
* Keeps track of the current owner.
[164] Fix | Delete
*
[165] Fix | Delete
* The current owner is the component who should own any components that are
[166] Fix | Delete
* currently being constructed.
[167] Fix | Delete
*/
[168] Fix | Delete
var ReactCurrentOwner = {
[169] Fix | Delete
/**
[170] Fix | Delete
* @internal
[171] Fix | Delete
* @type {ReactComponent}
[172] Fix | Delete
*/
[173] Fix | Delete
current: null
[174] Fix | Delete
};
[175] Fix | Delete
[176] Fix | Delete
var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
[177] Fix | Delete
function describeComponentFrame (name, source, ownerName) {
[178] Fix | Delete
var sourceInfo = '';
[179] Fix | Delete
[180] Fix | Delete
if (source) {
[181] Fix | Delete
var path = source.fileName;
[182] Fix | Delete
var fileName = path.replace(BEFORE_SLASH_RE, '');
[183] Fix | Delete
[184] Fix | Delete
{
[185] Fix | Delete
// In DEV, include code for a common special case:
[186] Fix | Delete
// prefer "folder/index.js" instead of just "index.js".
[187] Fix | Delete
if (/^index\./.test(fileName)) {
[188] Fix | Delete
var match = path.match(BEFORE_SLASH_RE);
[189] Fix | Delete
[190] Fix | Delete
if (match) {
[191] Fix | Delete
var pathBeforeSlash = match[1];
[192] Fix | Delete
[193] Fix | Delete
if (pathBeforeSlash) {
[194] Fix | Delete
var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, '');
[195] Fix | Delete
fileName = folderName + '/' + fileName;
[196] Fix | Delete
}
[197] Fix | Delete
}
[198] Fix | Delete
}
[199] Fix | Delete
}
[200] Fix | Delete
[201] Fix | Delete
sourceInfo = ' (at ' + fileName + ':' + source.lineNumber + ')';
[202] Fix | Delete
} else if (ownerName) {
[203] Fix | Delete
sourceInfo = ' (created by ' + ownerName + ')';
[204] Fix | Delete
}
[205] Fix | Delete
[206] Fix | Delete
return '\n in ' + (name || 'Unknown') + sourceInfo;
[207] Fix | Delete
}
[208] Fix | Delete
[209] Fix | Delete
var Resolved = 1;
[210] Fix | Delete
function refineResolvedLazyComponent(lazyComponent) {
[211] Fix | Delete
return lazyComponent._status === Resolved ? lazyComponent._result : null;
[212] Fix | Delete
}
[213] Fix | Delete
[214] Fix | Delete
function getWrappedName(outerType, innerType, wrapperName) {
[215] Fix | Delete
var functionName = innerType.displayName || innerType.name || '';
[216] Fix | Delete
return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
[217] Fix | Delete
}
[218] Fix | Delete
[219] Fix | Delete
function getComponentName(type) {
[220] Fix | Delete
if (type == null) {
[221] Fix | Delete
// Host root, text node or just invalid type.
[222] Fix | Delete
return null;
[223] Fix | Delete
}
[224] Fix | Delete
[225] Fix | Delete
{
[226] Fix | Delete
if (typeof type.tag === 'number') {
[227] Fix | Delete
error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
[228] Fix | Delete
}
[229] Fix | Delete
}
[230] Fix | Delete
[231] Fix | Delete
if (typeof type === 'function') {
[232] Fix | Delete
return type.displayName || type.name || null;
[233] Fix | Delete
}
[234] Fix | Delete
[235] Fix | Delete
if (typeof type === 'string') {
[236] Fix | Delete
return type;
[237] Fix | Delete
}
[238] Fix | Delete
[239] Fix | Delete
switch (type) {
[240] Fix | Delete
case REACT_FRAGMENT_TYPE:
[241] Fix | Delete
return 'Fragment';
[242] Fix | Delete
[243] Fix | Delete
case REACT_PORTAL_TYPE:
[244] Fix | Delete
return 'Portal';
[245] Fix | Delete
[246] Fix | Delete
case REACT_PROFILER_TYPE:
[247] Fix | Delete
return "Profiler";
[248] Fix | Delete
[249] Fix | Delete
case REACT_STRICT_MODE_TYPE:
[250] Fix | Delete
return 'StrictMode';
[251] Fix | Delete
[252] Fix | Delete
case REACT_SUSPENSE_TYPE:
[253] Fix | Delete
return 'Suspense';
[254] Fix | Delete
[255] Fix | Delete
case REACT_SUSPENSE_LIST_TYPE:
[256] Fix | Delete
return 'SuspenseList';
[257] Fix | Delete
}
[258] Fix | Delete
[259] Fix | Delete
if (typeof type === 'object') {
[260] Fix | Delete
switch (type.$$typeof) {
[261] Fix | Delete
case REACT_CONTEXT_TYPE:
[262] Fix | Delete
return 'Context.Consumer';
[263] Fix | Delete
[264] Fix | Delete
case REACT_PROVIDER_TYPE:
[265] Fix | Delete
return 'Context.Provider';
[266] Fix | Delete
[267] Fix | Delete
case REACT_FORWARD_REF_TYPE:
[268] Fix | Delete
return getWrappedName(type, type.render, 'ForwardRef');
[269] Fix | Delete
[270] Fix | Delete
case REACT_MEMO_TYPE:
[271] Fix | Delete
return getComponentName(type.type);
[272] Fix | Delete
[273] Fix | Delete
case REACT_BLOCK_TYPE:
[274] Fix | Delete
return getComponentName(type.render);
[275] Fix | Delete
[276] Fix | Delete
case REACT_LAZY_TYPE:
[277] Fix | Delete
{
[278] Fix | Delete
var thenable = type;
[279] Fix | Delete
var resolvedThenable = refineResolvedLazyComponent(thenable);
[280] Fix | Delete
[281] Fix | Delete
if (resolvedThenable) {
[282] Fix | Delete
return getComponentName(resolvedThenable);
[283] Fix | Delete
}
[284] Fix | Delete
[285] Fix | Delete
break;
[286] Fix | Delete
}
[287] Fix | Delete
}
[288] Fix | Delete
}
[289] Fix | Delete
[290] Fix | Delete
return null;
[291] Fix | Delete
}
[292] Fix | Delete
[293] Fix | Delete
var ReactDebugCurrentFrame = {};
[294] Fix | Delete
var currentlyValidatingElement = null;
[295] Fix | Delete
function setCurrentlyValidatingElement(element) {
[296] Fix | Delete
{
[297] Fix | Delete
currentlyValidatingElement = element;
[298] Fix | Delete
}
[299] Fix | Delete
}
[300] Fix | Delete
[301] Fix | Delete
{
[302] Fix | Delete
// Stack implementation injected by the current renderer.
[303] Fix | Delete
ReactDebugCurrentFrame.getCurrentStack = null;
[304] Fix | Delete
[305] Fix | Delete
ReactDebugCurrentFrame.getStackAddendum = function () {
[306] Fix | Delete
var stack = ''; // Add an extra top frame while an element is being validated
[307] Fix | Delete
[308] Fix | Delete
if (currentlyValidatingElement) {
[309] Fix | Delete
var name = getComponentName(currentlyValidatingElement.type);
[310] Fix | Delete
var owner = currentlyValidatingElement._owner;
[311] Fix | Delete
stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
[312] Fix | Delete
} // Delegate to the injected renderer-specific implementation
[313] Fix | Delete
[314] Fix | Delete
[315] Fix | Delete
var impl = ReactDebugCurrentFrame.getCurrentStack;
[316] Fix | Delete
[317] Fix | Delete
if (impl) {
[318] Fix | Delete
stack += impl() || '';
[319] Fix | Delete
}
[320] Fix | Delete
[321] Fix | Delete
return stack;
[322] Fix | Delete
};
[323] Fix | Delete
}
[324] Fix | Delete
[325] Fix | Delete
/**
[326] Fix | Delete
* Used by act() to track whether you're inside an act() scope.
[327] Fix | Delete
*/
[328] Fix | Delete
var IsSomeRendererActing = {
[329] Fix | Delete
current: false
[330] Fix | Delete
};
[331] Fix | Delete
[332] Fix | Delete
var ReactSharedInternals = {
[333] Fix | Delete
ReactCurrentDispatcher: ReactCurrentDispatcher,
[334] Fix | Delete
ReactCurrentBatchConfig: ReactCurrentBatchConfig,
[335] Fix | Delete
ReactCurrentOwner: ReactCurrentOwner,
[336] Fix | Delete
IsSomeRendererActing: IsSomeRendererActing,
[337] Fix | Delete
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
[338] Fix | Delete
assign: objectAssign
[339] Fix | Delete
};
[340] Fix | Delete
[341] Fix | Delete
{
[342] Fix | Delete
objectAssign(ReactSharedInternals, {
[343] Fix | Delete
// These should not be included in production.
[344] Fix | Delete
ReactDebugCurrentFrame: ReactDebugCurrentFrame,
[345] Fix | Delete
// Shim for React DOM 16.0.0 which still destructured (but not used) this.
[346] Fix | Delete
// TODO: remove in React 17.0.
[347] Fix | Delete
ReactComponentTreeHook: {}
[348] Fix | Delete
});
[349] Fix | Delete
}
[350] Fix | Delete
[351] Fix | Delete
// by calls to these methods by a Babel plugin.
[352] Fix | Delete
//
[353] Fix | Delete
// In PROD (or in packages without access to React internals),
[354] Fix | Delete
// they are left as they are instead.
[355] Fix | Delete
[356] Fix | Delete
function warn(format) {
[357] Fix | Delete
{
[358] Fix | Delete
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
[359] Fix | Delete
args[_key - 1] = arguments[_key];
[360] Fix | Delete
}
[361] Fix | Delete
[362] Fix | Delete
printWarning('warn', format, args);
[363] Fix | Delete
}
[364] Fix | Delete
}
[365] Fix | Delete
function error(format) {
[366] Fix | Delete
{
[367] Fix | Delete
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
[368] Fix | Delete
args[_key2 - 1] = arguments[_key2];
[369] Fix | Delete
}
[370] Fix | Delete
[371] Fix | Delete
printWarning('error', format, args);
[372] Fix | Delete
}
[373] Fix | Delete
}
[374] Fix | Delete
[375] Fix | Delete
function printWarning(level, format, args) {
[376] Fix | Delete
// When changing this logic, you might want to also
[377] Fix | Delete
// update consoleWithStackDev.www.js as well.
[378] Fix | Delete
{
[379] Fix | Delete
var hasExistingStack = args.length > 0 && typeof args[args.length - 1] === 'string' && args[args.length - 1].indexOf('\n in') === 0;
[380] Fix | Delete
[381] Fix | Delete
if (!hasExistingStack) {
[382] Fix | Delete
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
[383] Fix | Delete
var stack = ReactDebugCurrentFrame.getStackAddendum();
[384] Fix | Delete
[385] Fix | Delete
if (stack !== '') {
[386] Fix | Delete
format += '%s';
[387] Fix | Delete
args = args.concat([stack]);
[388] Fix | Delete
}
[389] Fix | Delete
}
[390] Fix | Delete
[391] Fix | Delete
var argsWithFormat = args.map(function (item) {
[392] Fix | Delete
return '' + item;
[393] Fix | Delete
}); // Careful: RN currently depends on this prefix
[394] Fix | Delete
[395] Fix | Delete
argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
[396] Fix | Delete
// breaks IE9: https://github.com/facebook/react/issues/13610
[397] Fix | Delete
// eslint-disable-next-line react-internal/no-production-logging
[398] Fix | Delete
[399] Fix | Delete
Function.prototype.apply.call(console[level], console, argsWithFormat);
[400] Fix | Delete
[401] Fix | Delete
try {
[402] Fix | Delete
// --- Welcome to debugging React ---
[403] Fix | Delete
// This error was thrown as a convenience so that you can use this stack
[404] Fix | Delete
// to find the callsite that caused this warning to fire.
[405] Fix | Delete
var argIndex = 0;
[406] Fix | Delete
var message = 'Warning: ' + format.replace(/%s/g, function () {
[407] Fix | Delete
return args[argIndex++];
[408] Fix | Delete
});
[409] Fix | Delete
throw new Error(message);
[410] Fix | Delete
} catch (x) {}
[411] Fix | Delete
}
[412] Fix | Delete
}
[413] Fix | Delete
[414] Fix | Delete
var didWarnStateUpdateForUnmountedComponent = {};
[415] Fix | Delete
[416] Fix | Delete
function warnNoop(publicInstance, callerName) {
[417] Fix | Delete
{
[418] Fix | Delete
var _constructor = publicInstance.constructor;
[419] Fix | Delete
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
[420] Fix | Delete
var warningKey = componentName + "." + callerName;
[421] Fix | Delete
[422] Fix | Delete
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
[423] Fix | Delete
return;
[424] Fix | Delete
}
[425] Fix | Delete
[426] Fix | Delete
error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
[427] Fix | Delete
[428] Fix | Delete
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
[429] Fix | Delete
}
[430] Fix | Delete
}
[431] Fix | Delete
/**
[432] Fix | Delete
* This is the abstract API for an update queue.
[433] Fix | Delete
*/
[434] Fix | Delete
[435] Fix | Delete
[436] Fix | Delete
var ReactNoopUpdateQueue = {
[437] Fix | Delete
/**
[438] Fix | Delete
* Checks whether or not this composite component is mounted.
[439] Fix | Delete
* @param {ReactClass} publicInstance The instance we want to test.
[440] Fix | Delete
* @return {boolean} True if mounted, false otherwise.
[441] Fix | Delete
* @protected
[442] Fix | Delete
* @final
[443] Fix | Delete
*/
[444] Fix | Delete
isMounted: function (publicInstance) {
[445] Fix | Delete
return false;
[446] Fix | Delete
},
[447] Fix | Delete
[448] Fix | Delete
/**
[449] Fix | Delete
* Forces an update. This should only be invoked when it is known with
[450] Fix | Delete
* certainty that we are **not** in a DOM transaction.
[451] Fix | Delete
*
[452] Fix | Delete
* You may want to call this when you know that some deeper aspect of the
[453] Fix | Delete
* component's state has changed but `setState` was not called.
[454] Fix | Delete
*
[455] Fix | Delete
* This will not invoke `shouldComponentUpdate`, but it will invoke
[456] Fix | Delete
* `componentWillUpdate` and `componentDidUpdate`.
[457] Fix | Delete
*
[458] Fix | Delete
* @param {ReactClass} publicInstance The instance that should rerender.
[459] Fix | Delete
* @param {?function} callback Called after component is updated.
[460] Fix | Delete
* @param {?string} callerName name of the calling function in the public API.
[461] Fix | Delete
* @internal
[462] Fix | Delete
*/
[463] Fix | Delete
enqueueForceUpdate: function (publicInstance, callback, callerName) {
[464] Fix | Delete
warnNoop(publicInstance, 'forceUpdate');
[465] Fix | Delete
},
[466] Fix | Delete
[467] Fix | Delete
/**
[468] Fix | Delete
* Replaces all of the state. Always use this or `setState` to mutate state.
[469] Fix | Delete
* You should treat `this.state` as immutable.
[470] Fix | Delete
*
[471] Fix | Delete
* There is no guarantee that `this.state` will be immediately updated, so
[472] Fix | Delete
* accessing `this.state` after calling this method may return the old value.
[473] Fix | Delete
*
[474] Fix | Delete
* @param {ReactClass} publicInstance The instance that should rerender.
[475] Fix | Delete
* @param {object} completeState Next state.
[476] Fix | Delete
* @param {?function} callback Called after component is updated.
[477] Fix | Delete
* @param {?string} callerName name of the calling function in the public API.
[478] Fix | Delete
* @internal
[479] Fix | Delete
*/
[480] Fix | Delete
enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
[481] Fix | Delete
warnNoop(publicInstance, 'replaceState');
[482] Fix | Delete
},
[483] Fix | Delete
[484] Fix | Delete
/**
[485] Fix | Delete
* Sets a subset of the state. This only exists because _pendingState is
[486] Fix | Delete
* internal. This provides a merging strategy that is not available to deep
[487] Fix | Delete
* properties which is confusing. TODO: Expose pendingState or don't use it
[488] Fix | Delete
* during the merge.
[489] Fix | Delete
*
[490] Fix | Delete
* @param {ReactClass} publicInstance The instance that should rerender.
[491] Fix | Delete
* @param {object} partialState Next partial state to be merged with state.
[492] Fix | Delete
* @param {?function} callback Called after component is updated.
[493] Fix | Delete
* @param {?string} Name of the calling function in the public API.
[494] Fix | Delete
* @internal
[495] Fix | Delete
*/
[496] Fix | Delete
enqueueSetState: function (publicInstance, partialState, callback, callerName) {
[497] Fix | Delete
warnNoop(publicInstance, 'setState');
[498] Fix | Delete
}
[499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function