Currently, effects will not automatically be cancelled on store's deinit causing long running effects to still be running indefinitely. This is because of the nature of CompositeDisposable where it does not automatically dispose of it's disposables on deinit (like a regular dispose bag).
How
To solve the issue, we need to tie the lifecycle of the composite disposable to the dispose bag or we could also manually call compositeDisposable.dispose() on deinit.
What
Currently, effects will not automatically be cancelled on store's deinit causing long running effects to still be running indefinitely. This is because of the nature of
CompositeDisposable
where it does not automatically dispose of it's disposables on deinit (like a regular dispose bag).How
To solve the issue, we need to tie the lifecycle of the composite disposable to the dispose bag or we could also manually call
compositeDisposable.dispose()
ondeinit
.