screenWithMutationStream
fun <T, R> screenWithMutationStream(screen: Flow<ScreenState<T>>, mutation: Flow<MutationState<R>> = flowOf(MutationState.Idle), outboxPending: Flow<Int> = flowOf(0), isSyncing: Flow<Boolean> = flowOf(false)): Flow<ScreenWithMutation<T, R>>
Combines the read state, the write state, and the offline-sync signals into one stream. Only screen is required; the rest default to a single benign emission, so the combined stream emits as soon as the screen does. The app wires outboxPending/isSyncing to its :offline-outbox queue if it uses one.