(element, container, parentComponent, callback)
| 28816 | return root; |
| 28817 | } |
| 28818 | function updateContainer(element, container, parentComponent, callback) { |
| 28819 | { |
| 28820 | onScheduleRoot(container, element); |
| 28821 | } |
| 28822 | |
| 28823 | var current$1 = container.current; |
| 28824 | var eventTime = requestEventTime(); |
| 28825 | var lane = requestUpdateLane(current$1); |
| 28826 | |
| 28827 | { |
| 28828 | markRenderScheduled(lane); |
| 28829 | } |
| 28830 | |
| 28831 | var context = getContextForSubtree(parentComponent); |
| 28832 | |
| 28833 | if (container.context === null) { |
| 28834 | container.context = context; |
| 28835 | } else { |
| 28836 | container.pendingContext = context; |
| 28837 | } |
| 28838 | |
| 28839 | { |
| 28840 | if (isRendering && current !== null && !didWarnAboutNestedUpdates) { |
| 28841 | didWarnAboutNestedUpdates = true; |
| 28842 | |
| 28843 | error('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.', getComponentNameFromFiber(current) || 'Unknown'); |
| 28844 | } |
| 28845 | } |
| 28846 | |
| 28847 | var update = createUpdate(eventTime, lane); // Caution: React DevTools currently depends on this property |
| 28848 | // being called "element". |
| 28849 | |
| 28850 | update.payload = { |
| 28851 | element: element |
| 28852 | }; |
| 28853 | callback = callback === undefined ? null : callback; |
| 28854 | |
| 28855 | if (callback !== null) { |
| 28856 | { |
| 28857 | if (typeof callback !== 'function') { |
| 28858 | error('render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback); |
| 28859 | } |
| 28860 | } |
| 28861 | |
| 28862 | update.callback = callback; |
| 28863 | } |
| 28864 | |
| 28865 | var root = enqueueUpdate(current$1, update, lane); |
| 28866 | |
| 28867 | if (root !== null) { |
| 28868 | scheduleUpdateOnFiber(root, current$1, lane, eventTime); |
| 28869 | entangleTransitions(root, current$1, lane); |
| 28870 | } |
| 28871 | |
| 28872 | return lane; |
| 28873 | } |
| 28874 | function getPublicRootInstance(container) { |
| 28875 | var containerFiber = container.current; |
no test coverage detected
searching dependent graphs…