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

Function mountCallback

docs/external/js/react-dom.development.js:15548–15553  ·  view source on GitHub ↗
(callback, deps)

Source from the content-addressed store, hash-verified

15546 var updateDebugValue = mountDebugValue;
15547
15548 function mountCallback(callback, deps) {
15549 var hook = mountWorkInProgressHook();
15550 var nextDeps = deps === undefined ? null : deps;
15551 hook.memoizedState = [callback, nextDeps];
15552 return callback;
15553 }
15554
15555 function updateCallback(callback, deps) {
15556 var hook = updateWorkInProgressHook();

Callers 2

mountTransitionFunction · 0.85

Calls 1

mountWorkInProgressHookFunction · 0.85

Tested by

no test coverage detected