MCPcopy Create free account
hub / github.com/WebReflection/neverland / dropEffect

Function dropEffect

index.js:491–502  ·  view source on GitHub ↗
(hook)

Source from the content-addressed store, hash-verified

489 };
490
491 var dropEffect = function dropEffect(hook) {
492 (effects.get(hook) || []).forEach(function (info) {
493 var clean = info.clean,
494 stop = info.stop;
495 stop();
496
497 if (clean) {
498 info.clean = null;
499 clean();
500 }
501 });
502 };
503 var hasEffect = effects.has.bind(effects);
504 var useEffect = createEffect(true);
505 var useLayoutEffect = createEffect(false); // useMemo, useCallback

Callers

nothing calls this directly

Calls 1

stopFunction · 0.70

Tested by

no test coverage detected