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

Function destroy

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

Source from the content-addressed store, hash-verified

263 this.notifier.notify(NotificationSource.RootEffect);
264 },
265 destroy(this: RootEffectNode) {
266 consumerDestroy(this);
267
268 if (this.onDestroyFns !== null) {
269 for (const fn of this.onDestroyFns) {
270 fn();
271 }
272 }
273
274 this.cleanup();
275 this.scheduler.remove(this);
276 },
277}))();
278
279export const VIEW_EFFECT_NODE: Omit<

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