MCPcopy Index your code
hub / github.com/caseywebdev/react-list / mountMemo

Function mountMemo

docs/index.js:25506–25520  ·  view source on GitHub ↗
(nextCreate, deps)

Source from the content-addressed store, hash-verified

25504 return callback;
25505 }
25506 function mountMemo(nextCreate, deps) {
25507 var hook = mountWorkInProgressHook();
25508 deps = void 0 === deps ? null : deps;
25509 var nextValue = nextCreate();
25510 if (shouldDoubleInvokeUserFnsInHooksDEV) {
25511 setIsStrictModeForDevtools(!0);
25512 try {
25513 nextCreate();
25514 } finally {
25515 setIsStrictModeForDevtools(!1);
25516 }
25517 }
25518 hook.memoizedState = [nextValue, deps];
25519 return nextValue;
25520 }
25521 function updateMemo(nextCreate, deps) {
25522 var hook = updateWorkInProgressHook();
25523 deps = void 0 === deps ? null : deps;

Callers 1

index.jsFile · 0.85

Calls 2

mountWorkInProgressHookFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…