MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / memoizeState

Function memoizeState

code/controlled-uncontrolled/public/app.js:9816–9820  ·  view source on GitHub ↗
(workInProgress, nextState)

Source from the content-addressed store, hash-verified

9814 }
9815
9816 function memoizeState(workInProgress, nextState) {
9817 workInProgress.memoizedState = nextState;
9818 // Don't reset the updateQueue, in case there are pending updates. Resetting
9819 // is handled by processUpdateQueue.
9820 }
9821
9822 function beginWork(current, workInProgress, renderExpirationTime) {
9823 if (workInProgress.expirationTime === NoWork || workInProgress.expirationTime > renderExpirationTime) {

Callers 4

resumeMountClassInstanceFunction · 0.70
updateClassInstanceFunction · 0.70
finishClassComponentFunction · 0.70
updateHostRootFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected