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

Function dropEffect

test/neverland.js:493–504  ·  view source on GitHub ↗
(hook)

Source from the content-addressed store, hash-verified

491 var useEffect = createEffect(false);
492 var useLayoutEffect = createEffect(true);
493 var dropEffect = function dropEffect(hook) {
494 if (effects.has(hook)) effects.get(hook).stack.forEach(function (info) {
495 var clean = info.clean,
496 stop = info.stop;
497 stop();
498
499 if (clean) {
500 info.clean = null;
501 clean();
502 }
503 });
504 };
505
506 /*! (c) Andrea Giammarchi - ISC */
507 var useMemo = function useMemo(memo, guards) {

Callers

nothing calls this directly

Calls 1

stopFunction · 0.70

Tested by

no test coverage detected