Enea Jahollari
May 20, 2023

--

That's the reason why async pipe also returns null the first time if the value isn't there.

If the subscription emits a value we store it and use it without subscribing again.

That's why we need the pure: false! So when Angular re-checks that binding it will always return the new value (if there's one).

--

--

Enea Jahollari
Enea Jahollari

Written by Enea Jahollari

GDE for Angular | Software Engineer @ push-based.io | Performance & architecture enthusiast

No responses yet