Younes on X: "💥 #Angular friends! Did you know that apps using destroyed$ = new Subject(); ...takeUntil(destroyed$) might just be leaking!? ✓ we should use ReplaySubject(1) instead to not miss late subscribers
![Say Goodbye to Memory Leaks: A Guide to Angular's takeUntilDestroy | by Chintanonweb | Mar, 2024 | Stackademic Say Goodbye to Memory Leaks: A Guide to Angular's takeUntilDestroy | by Chintanonweb | Mar, 2024 | Stackademic](https://miro.medium.com/v2/resize:fit:480/0*EZrxW0_bAur5iWng.jpg)
Say Goodbye to Memory Leaks: A Guide to Angular's takeUntilDestroy | by Chintanonweb | Mar, 2024 | Stackademic
![Younes on X: "⚠️ Most takeUntil(destroyed$) implementations are flawed & miss late subscribers ⚠️ 👉 but the new #Angular "takeUntilDestroyed" operator is not only safe, it will also throw an error to Younes on X: "⚠️ Most takeUntil(destroyed$) implementations are flawed & miss late subscribers ⚠️ 👉 but the new #Angular "takeUntilDestroyed" operator is not only safe, it will also throw an error to](https://pbs.twimg.com/media/Fth3zKtXwBQxkuT.jpg:large)
Younes on X: "⚠️ Most takeUntil(destroyed$) implementations are flawed & miss late subscribers ⚠️ 👉 but the new #Angular "takeUntilDestroyed" operator is not only safe, it will also throw an error to
![Angular: Use Observable Subscriptions & Async-Pipe to Prevent Memory Leaks. | by Ankit Maheshwari | JavaScript in Plain English Angular: Use Observable Subscriptions & Async-Pipe to Prevent Memory Leaks. | by Ankit Maheshwari | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:1400/0*wtaV63oPBD2D4LWq.png)