MCPcopy Index your code
hub / github.com/angular/angular / destroy

Function destroy

packages/core/src/render3/reactivity/effect.ts:261–272  ·  view source on GitHub ↗
(this: RootEffectNode)

Source from the content-addressed store, hash-verified

259 this.notifier.notify(NotificationSource.RootEffect);
260 },
261 destroy(this: RootEffectNode) {
262 consumerDestroy(this);
263
264 if (this.onDestroyFns !== null) {
265 for (const fn of this.onDestroyFns) {
266 fn();
267 }
268 }
269
270 this.cleanup();
271 this.scheduler.remove(this);
272 },
273 }))();
274
275export const VIEW_EFFECT_NODE: Omit<ViewEffectNode, 'fn' | 'view' | 'injector' | 'notifier'> =

Callers

nothing calls this directly

Calls 5

consumerDestroyFunction · 0.90
cleanupMethod · 0.65
removeMethod · 0.65
fnFunction · 0.50
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…