(current, element, currentTime, expirationTime, callback)
| 13392 | } |
| 13393 | |
| 13394 | function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) { |
| 13395 | { |
| 13396 | if (ReactDebugCurrentFiber.phase === 'render' && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) { |
| 13397 | didWarnAboutNestedUpdates = true; |
| 13398 | 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'); |
| 13399 | } |
| 13400 | } |
| 13401 | |
| 13402 | callback = callback === undefined ? null : callback; |
| 13403 | { |
| 13404 | warning(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback); |
| 13405 | } |
| 13406 | |
| 13407 | var update = { |
| 13408 | expirationTime: expirationTime, |
| 13409 | partialState: { element: element }, |
| 13410 | callback: callback, |
| 13411 | isReplace: false, |
| 13412 | isForced: false, |
| 13413 | capturedValue: null, |
| 13414 | next: null |
| 13415 | }; |
| 13416 | insertUpdateIntoFiber(current, update); |
| 13417 | scheduleWork(current, expirationTime); |
| 13418 | |
| 13419 | return expirationTime; |
| 13420 | } |
| 13421 | |
| 13422 | function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) { |
| 13423 | // TODO: If this is a nested container, this won't be the root. |
no test coverage detected