MCPcopy Create free account
hub / github.com/angular/angular / createEffectFn

Function createEffectFn

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

Source from the content-addressed store, hash-verified

336}
337
338function createEffectFn(node: EffectNode, fn: (onCleanup: EffectCleanupRegisterFn) => void) {
339 return () => {
340 fn((cleanupFn) => (node.cleanupFns ??= []).push(cleanupFn));
341 };
342}

Callers 2

createViewEffectFunction · 0.85
createRootEffectFunction · 0.85

Calls 2

fnFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected