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

Function mountEffectImpl

docs/external/js/react-dom.development.js:15429–15434  ·  view source on GitHub ↗
(fiberEffectTag, hookEffectTag, create, deps)

Source from the content-addressed store, hash-verified

15427 }
15428
15429 function mountEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
15430 var hook = mountWorkInProgressHook();
15431 var nextDeps = deps === undefined ? null : deps;
15432 currentlyRenderingFiber$1.effectTag |= fiberEffectTag;
15433 hook.memoizedState = pushEffect(HasEffect | hookEffectTag, create, undefined, nextDeps);
15434 }
15435
15436 function updateEffectImpl(fiberEffectTag, hookEffectTag, create, deps) {
15437 var hook = updateWorkInProgressHook();

Callers 3

mountEffectFunction · 0.85
mountLayoutEffectFunction · 0.85
mountImperativeHandleFunction · 0.85

Calls 2

mountWorkInProgressHookFunction · 0.85
pushEffectFunction · 0.85

Tested by

no test coverage detected