MCPcopy Create free account
hub / github.com/microsoft/SandDance / mountMemo

Function mountMemo

docs/external/js/react-dom.development.js:15574–15580  ·  view source on GitHub ↗
(nextCreate, deps)

Source from the content-addressed store, hash-verified

15572 }
15573
15574 function mountMemo(nextCreate, deps) {
15575 var hook = mountWorkInProgressHook();
15576 var nextDeps = deps === undefined ? null : deps;
15577 var nextValue = nextCreate();
15578 hook.memoizedState = [nextValue, nextDeps];
15579 return nextValue;
15580 }
15581
15582 function updateMemo(nextCreate, deps) {
15583 var hook = updateWorkInProgressHook();

Callers 1

Calls 1

mountWorkInProgressHookFunction · 0.85

Tested by

no test coverage detected