Send a signal with the same value

Discussão em 'Angular' iniciado por Mark, Abril 15, 2025.

  1. Mark

    Mark Guest

    I have a situation when I need to inform subscribers about a signal's being changed with the same value it currently has. I am using the following example: StackBlitz

    Then I change line 58:

    this.count.update((c) => c + 1);


    to:

    this.count.update((c) => c + 0);


    and nothing is logged into the Console.

    Can a signal emit events with duplicate values?

    Continue reading...

Compartilhe esta Página