pedroql / mvflow

Simple Android MVI architecture using Kotlin Flows
MIT License
124 stars 10 forks source link

Rework `takeView` API to differentiate between view scope and handler scope #9

Closed pedroql closed 4 years ago

pedroql commented 4 years ago

The previous approach had a problem: if the view scope is cancelled, the handling of on-going events was cancelled even if the mvflow scope was not cancelled.

This PR introduces (breaking) changes to the API so we are able to distinguish the scope of the view and that of the mvflow.