Hasan Nagizade
04/14/2023, 2:34 PMAnonymike
04/14/2023, 2:36 PMAnonymike
04/14/2023, 2:38 PMHasan Nagizade
04/14/2023, 2:39 PMTijl
04/14/2023, 2:59 PMStateFlow
and SharedFlow
even existed and it actually works pretty well (and also allows observing things that are not a Flow).
But if your entire viewmodel is a bunch of (State)Flows I’d consider the more direct approaches as outlined above though.
for what it’s worth we also opensourced what we use internally:
https://github.com/splendo/kaluga/tree/develop/architecture#observables-and-subjectsPavel S
04/15/2023, 9:12 AMHasan Nagizade
04/15/2023, 2:06 PM