--

Well, if it's intended to ignore the lifecycle and you want to collect a Flow once and share it, you should just use stateIn() with SharingStarted.Eagerly and then you don't need to add any extra code.

--

--

Christophe Beyls
Christophe Beyls

Written by Christophe Beyls

Android developer from Belgium, blogging about advanced programming topics.

Responses (1)