W3cubDocs

/Angular

EffectRef

A global reactive effect, which can be manually destroyed.

API

interface EffectRef {
  destroy(): void;
}

destroy

void

Shut down the effect, removing it from any upcoming scheduled executions.

@returnsvoid

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/EffectRef