Jason Warner
Oct 18, 2021

--

This is a good pattern until it bites you. If you look closely, he is using Subscription.add(). You can add subscriptions to another subscription and only have to unsubscribe from one subscription. I have used the takeUntil pattern in the past. I prefer to use a single subscription now.

--

--

Jason Warner
Jason Warner

Written by Jason Warner

I enjoy everything related to code and being a dev. However, my only skills are showing up and being lucky and I'm not sure if luck is a talent.

No responses yet