Closed StefMa closed 7 years ago
Already prepared a PR for this. Then I came to the conclusion that there is not a single case when you want to clear those subscriptions earlier. Those manage*
methods are for exactly one usecase, unsubscribing when a specific lifecycle callback gets called. When you want to unsubscribe all Subscriptions earlier you should manage them yourself.
When we'd add a clear()
method you could accidentally unsubscribe things which aren't meant to be unsubscribed. Especially challenging in larger teams
In the real world it could be happen that we want to
clear
all thesubscriptions
/disposables
,which are already added to the handler viamanage*
, earlier than the handler does .So it would be great if you can provide a
clear
method to the Rx*Handler 👍