Florian
10/30/2021, 11:01 AMonStart when using compose? Do I create a property and initialize it in setContent? In the past I would've used by viewModels().
Or should I use something like this?Yousef
10/31/2021, 5:52 PMMarko Novakovic
11/01/2021, 9:07 AMViewModel as StateFlow you can have started = SharingStarted.WhileSubscribed() inside stateIn. you also have repeatOnLifecycle and flowWithLifecycle methods for collecting flows. you can take a look how are they implemented, what do they do in order to work properly with compose. again, what is your usecase?Florian
11/02/2021, 6:31 PMMarko Novakovic
11/02/2021, 8:02 PM