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

Function markRef

bundle.js:7365–7366  ·  view source on GitHub ↗
(current,workInProgress)

Source from the content-addressed store, hash-verified

7363workInProgress.child=reconcileChildFibersInPlace(workInProgress,workInProgress.child,nextChildren,priorityLevel);}}function updateFragment(current,workInProgress){var nextChildren=workInProgress.pendingProps;if(hasContextChanged$1()){// Normally we can bail out on props equality but if context has changed
7364// we don't do the bailout and we have to reuse existing props instead.
7365if(nextChildren===null){nextChildren=workInProgress.memoizedProps;}}else if(nextChildren===null||workInProgress.memoizedProps===nextChildren){return bailoutOnAlreadyFinishedWork(current,workInProgress);}reconcileChildren(current,workInProgress,nextChildren);memoizeProps(workInProgress,nextChildren);return workInProgress.child;}function markRef(current,workInProgress){var ref=workInProgress.ref;if(ref!==null&&(!current||current.ref!==ref)){// Schedule a Ref effect
7366workInProgress.effectTag|=Ref$1;}}function updateFunctionalComponent(current,workInProgress){var fn=workInProgress.type;var nextProps=workInProgress.pendingProps;var memoizedProps=workInProgress.memoizedProps;if(hasContextChanged$1()){// Normally we can bail out on props equality but if context has changed
7367// we don't do the bailout and we have to reuse existing props instead.
7368if(nextProps===null){nextProps=memoizedProps;}}else{if(nextProps===null||memoizedProps===nextProps){return bailoutOnAlreadyFinishedWork(current,workInProgress);}// TODO: consider bringing fn.shouldComponentUpdate() back.
7369// It used to be here.

Callers 3

finishClassComponentFunction · 0.85
updateHostComponentFunction · 0.85
completeWorkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected