Angular - rxResource() - how to react to changes in the database

Discussão em 'Angular' iniciado por KarlB, Fevereiro 18, 2025.

  1. KarlB

    KarlB Guest

    "The Observable produced by the loader() function will consider only the first emitted value, ignoring subsequent emissions."

    What if there are changes in the database?

    Doesn't that defeat the purpose of a datastream (where I always get the latest data automatically) if rxResource unsubscribes after receiving the first values?

    My goal is to reflect the latest news in my template without having to push a reload button. Traditional subscription-solutions provided that.

    How can I get the same behavior with rxResource?

    Continue reading...

Compartilhe esta Página