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

Function memoizeState

code/one-direction-data-flow/public/app.js:10365–10369  ·  view source on GitHub ↗
(workInProgress, nextState)

Source from the content-addressed store, hash-verified

10363 }
10364
10365 function memoizeState(workInProgress, nextState) {
10366 workInProgress.memoizedState = nextState;
10367 // Don't reset the updateQueue, in case there are pending updates. Resetting
10368 // is handled by processUpdateQueue.
10369 }
10370
10371 function beginWork(current, workInProgress, renderExpirationTime) {
10372 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