openMF / mifos-mobile

Repository for the Mifos Mobile Banking App for clients
https://openmf.github.io/mobileapps.github.io/
Mozilla Public License 2.0
274 stars 686 forks source link

safe way to collect flows from android UI #2550

Closed MuindiStephen closed 1 month ago

MuindiStephen commented 6 months ago

The safest way to collecting flows from UI eg. HomeActivity

repeatOnLifecycle is a suspend function that takes a Lifecycle.State as a parameter which is used to automatically create and launch a new coroutine with the block passed to it when the lifecycle reaches that state, and cancel the ongoing coroutine that’s executing the block when the lifecycle falls below the state

therajanmaurya commented 1 month ago

We are not using fragments anymore.