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

Function commitHookEffectListMount

docs/index.js:10983–11004  ·  view source on GitHub ↗
(flags, finishedWork)

Source from the content-addressed store, hash-verified

10981 callCallback(callbacks[updateQueue], context);
10982}
10983function commitHookEffectListMount(flags, finishedWork) {
10984 try {
10985 var updateQueue = finishedWork.updateQueue,
10986 lastEffect = null !== updateQueue ? updateQueue.lastEffect : null;
10987 if (null !== lastEffect) {
10988 var firstEffect = lastEffect.next;
10989 updateQueue = firstEffect;
10990 do {
10991 if ((updateQueue.tag & flags) === flags) {
10992 lastEffect = void 0;
10993 var create = updateQueue.create,
10994 inst = updateQueue.inst;
10995 lastEffect = create();
10996 inst.destroy = lastEffect;
10997 }
10998 updateQueue = updateQueue.next;
10999 } while (updateQueue !== firstEffect);
11000 }
11001 } catch (error) {
11002 captureCommitPhaseError(finishedWork, finishedWork.return, error);
11003 }
11004}
11005function commitHookEffectListUnmount(
11006 flags,
11007 finishedWork,

Calls 2

captureCommitPhaseErrorFunction · 0.85
runWithFiberInDEVFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…