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

Function updateCallback

docs/index.js:7955–7963  ·  view source on GitHub ↗
(callback, deps)

Source from the content-addressed store, hash-verified

7953}
7954function mountDebugValue() {}
7955function updateCallback(callback, deps) {
7956 var hook = updateWorkInProgressHook();
7957 deps = void 0 === deps ? null : deps;
7958 var prevState = hook.memoizedState;
7959 if (null !== deps && areHookInputsEqual(deps, prevState[1]))
7960 return prevState[0];
7961 hook.memoizedState = [callback, deps];
7962 return callback;
7963}
7964function updateMemo(nextCreate, deps) {
7965 var hook = updateWorkInProgressHook();
7966 deps = void 0 === deps ? null : deps;

Callers 1

index.jsFile · 0.85

Calls 2

updateWorkInProgressHookFunction · 0.85
areHookInputsEqualFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…