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

Function pushEffect

docs/index.js:7882–7896  ·  view source on GitHub ↗
(tag, create, inst, deps)

Source from the content-addressed store, hash-verified

7880 return [stateHook, dispatch, !1];
7881}
7882function pushEffect(tag, create, inst, deps) {
7883 tag = { tag: tag, create: create, inst: inst, deps: deps, next: null };
7884 create = currentlyRenderingFiber$1.updateQueue;
7885 null === create &&
7886 ((create = createFunctionComponentUpdateQueue()),
7887 (currentlyRenderingFiber$1.updateQueue = create));
7888 inst = create.lastEffect;
7889 null === inst
7890 ? (create.lastEffect = tag.next = tag)
7891 : ((deps = inst.next),
7892 (inst.next = tag),
7893 (tag.next = deps),
7894 (create.lastEffect = tag));
7895 return tag;
7896}
7897function updateRef() {
7898 return updateWorkInProgressHook().memoizedState;
7899}

Callers 6

updateSyncExternalStoreFunction · 0.85
updateActionStateImplFunction · 0.85
mountEffectImplFunction · 0.85
updateEffectImplFunction · 0.85
index.jsFile · 0.85
mountSyncExternalStoreFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…