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

Function memoizeState

bundle.js:7471–7473  ·  view source on GitHub ↗
(workInProgress,nextState)

Source from the content-addressed store, hash-verified

7469// How can that happen? How is this not being cloned?
7470return null;}// TODO: Delete memoizeProps/State and move to reconcile/bailout instead
7471function memoizeProps(workInProgress,nextProps){workInProgress.memoizedProps=nextProps;}function memoizeState(workInProgress,nextState){workInProgress.memoizedState=nextState;// Don't reset the updateQueue, in case there are pending updates. Resetting
7472// is handled by beginUpdateQueue.
7473}function beginWork(current,workInProgress,priorityLevel){if(workInProgress.pendingWorkPriority===NoWork$3||workInProgress.pendingWorkPriority>priorityLevel){return bailoutOnLowPriority(current,workInProgress);}{ReactDebugCurrentFiber$4.setCurrentFiber(workInProgress,null);}switch(workInProgress.tag){case IndeterminateComponent$2:return mountIndeterminateComponent(current,workInProgress,priorityLevel);case FunctionalComponent$1:return updateFunctionalComponent(current,workInProgress);case ClassComponent$6:return updateClassComponent(current,workInProgress,priorityLevel);case HostRoot$7:return updateHostRoot(current,workInProgress,priorityLevel);case HostComponent$7:return updateHostComponent(current,workInProgress,priorityLevel);case HostText$4:return updateHostText(current,workInProgress);case CoroutineHandlerPhase:// This is a restart. Reset the tag to the initial phase.
7474workInProgress.tag=CoroutineComponent$1;// Intentionally fall through since this is now the same.
7475case CoroutineComponent$1:return updateCoroutineComponent(current,workInProgress);case YieldComponent$2:// A yield component is just a placeholder, we can just run through the
7476// next one immediately.

Callers 3

updateClassInstanceFunction · 0.85
finishClassComponentFunction · 0.85
updateHostRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected