MCPcopy
hub / github.com/angular/angular / createEffectFn

Function createEffectFn

packages/core/src/render3/reactivity/effect.ts:330–334  ·  view source on GitHub ↗
(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void)

Source from the content-addressed store, hash-verified

328}
329
330function createEffectFn(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void) {
331 return () => {
332 fn((cleanupFn) => (node.cleanupFns ??= []).push(cleanupFn));
333 };
334}

Callers 2

createViewEffectFunction · 0.85
createRootEffectFunction · 0.85

Calls 2

fnFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…