(current, element, currentTime, expirationTime, callback)
| 14062 | } |
| 14063 | |
| 14064 | function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) { |
| 14065 | { |
| 14066 | if (ReactDebugCurrentFiber.phase === 'render' && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { |
| 14067 | didWarnAboutNestedUpdates = true; |
| 14068 | warning(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(ReactDebugCurrentFiber.current) || 'Unknown'); |
| 14069 | } |
| 14070 | } |
| 14071 | |
| 14072 | callback = callback === undefined ? null : callback; |
| 14073 | { |
| 14074 | warning(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback); |
| 14075 | } |
| 14076 | |
| 14077 | var update = { |
| 14078 | expirationTime: expirationTime, |
| 14079 | partialState: { element: element }, |
| 14080 | callback: callback, |
| 14081 | isReplace: false, |
| 14082 | isForced: false, |
| 14083 | capturedValue: null, |
| 14084 | next: null |
| 14085 | }; |
| 14086 | insertUpdateIntoFiber(current, update); |
| 14087 | scheduleWork(current, expirationTime); |
| 14088 | |
| 14089 | return expirationTime; |
| 14090 | } |
| 14091 | |
| 14092 | function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) { |
| 14093 | // TODO: If this is a nested container, this won't be the root. |
no test coverage detected