ShareReplay in RxJS - Hidden Pitfall You Have To Know (Advanced)

Описание к видео ShareReplay in RxJS - Hidden Pitfall You Have To Know (Advanced)

To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/DecodedFrontend.
You’ll also get 20% off an annual premium subscription.

The ShareReplay operator in RxJS is a great way to improve the performance of your stream by caching expansive operations and side effects and sharing results with new subscribers. However, you should use this operator carefully because it has a hidden pitfall that can introduce memory leaks even though you explicitly unsubscribe from your streams. From this video, you will learn how to use it safely and how it works under the hood. Enjoy watching and sharing this video with your colleagues if you find it useful!

👉 Join our Discord Server - https://bit.ly/decoded-frontend-discord

👉 See All Angular Courses - https://bit.ly/discounted-course-bundle

Code on GitHub:
https://github.com/DMezhenskyi/angula...

🕒 Time Codes:
00:00 - About shareReplay;
00:01:03 - Intro;
00:02:20 - The Problem;
00:04:34 - The Solution;
00:06:25 - Extended Explanation (custom shareReplay);
00:17:00 - Brilliant Sponsorship;
00:18:00 - Discord Community Server Announce;
00:18:52 - Outro;


💡 Short Frontend Snacks (Tips) every week here:
Twitter -   / decodedfrontend  
Instagram -   / decodedfrontend  
LinkedIn -   / dmezhenskyi  

This video was sponsored by Brilliant.

Комментарии

Информация по комментариям в разработке