flow-lifecycle-observer icon indicating copy to clipboard operation
flow-lifecycle-observer copied to clipboard

A plugin for collecting Kotlin Flow in an Android Lifecycle-aware manner.

Results 3 flow-lifecycle-observer issues
Sort by recently updated
recently updated
newest added

The problem with using `Flow` or `SharedFlow` as a replacement for `LiveData` with Jetpack Compose is that `Flow.collectAsState()` require to pass as argument the initial value of the `Flow`. `StateFlow.collectAsState()`...

I've found that most of the time in UI code you really want `collectLatest` rather than `collect`. If your UI code has gone away rendering a thumbnail or doing a...

Usually ongoing operations should not be interrupted due to rotation. Suggest to add a delay before cancelling the job like the androidx `livedata { }` builder. In their version they...