Make angular effect just execute once

Discussão em 'Angular' iniciado por bvdb, Abril 16, 2025.

  1. bvdb

    bvdb Guest

    I have an angular effect which I only want to be executed once.

    But because it depends on other signals, I want it to wait first until all data is present. After that first execution, I don't want it to be triggered again.

    I am looking for an elegant solution (not just some boolean to flip)

    With Observables you could effectively use takeUntil or take(1). But what is the signal equivalent to this?

    Continue reading...

Compartilhe esta Página