MCPcopy Create free account
hub / github.com/danielstocks/react-sortable / pushHostRootContext

Function pushHostRootContext

bundle.js:7384–7385  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

7382// TODO: Restructure so we never read values from the instance.
7383memoizeState(workInProgress,instance.state);memoizeProps(workInProgress,instance.props);// The context might have changed so we need to recalculate it.
7384if(hasContext){invalidateContextProvider$1(workInProgress,true);}return workInProgress.child;}function pushHostRootContext(workInProgress){var root=workInProgress.stateNode;if(root.pendingContext){pushTopLevelContextObject$1(workInProgress,root.pendingContext,root.pendingContext!==root.context);}else if(root.context){// Should always be set
7385pushTopLevelContextObject$1(workInProgress,root.context,false);}pushHostContainer(workInProgress,root.containerInfo);}function updateHostRoot(current,workInProgress,priorityLevel){pushHostRootContext(workInProgress);var updateQueue=workInProgress.updateQueue;if(updateQueue!==null){var prevState=workInProgress.memoizedState;var state=beginUpdateQueue$1(current,workInProgress,updateQueue,null,prevState,null,priorityLevel);if(prevState===state){// If the state is the same as before, that's a bailout because we had
7386// no work matching this priority.
7387resetHydrationState();return bailoutOnAlreadyFinishedWork(current,workInProgress);}var element=state.element;if((current===null||current.child===null)&&enterHydrationState(workInProgress)){// If we don't have any current children this might be the first pass.
7388// We always try to hydrate. If this isn't a hydration pass there won't

Callers 3

updateHostRootFunction · 0.85
bailoutOnLowPriorityFunction · 0.85
beginFailedWorkFunction · 0.85

Calls 1

pushHostContainerFunction · 0.85

Tested by

no test coverage detected