Not sure about which example, but WhileSubscribed should be used in a stateflow, from within a viewmodel, so I think that part shouldn't change much with Compose
✍️ 1
nitrog42
05/25/2021, 9:05 AM
I'm still wondering if using
collectAsState()
should then be avoided (when the flow comes from a viewmodel, like a Room flow for example) in favor of
LaunchedEffect
...
Annoying because collectAsState was a one-liner 😄