[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/EffectCleanupFn [Back]  [Original]

EffectCleanupFn Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

EffectCleanupFn

Type Alias
stablesince v20.0

An effect can, optionally, register a cleanup function. If registered, the cleanup is executed before the next effect run. The cleanup function makes it possible to "cancel" any work that the previous effect run might have started.

Effect cleanup functions

On this page

    arrow_upward_alt Back to the top

    API

        
          type EffectCleanupFn = () => void
        
        
    Jump to details

    Web Proxy Viewer  |  New URL  |  Original Page