Pick the fix
A team's screens have many MutableStateFlows that drift out of sync. They want predictable state without much ceremony. Best step?
Hint 1 of 1
What causes the drift?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Merge them into one immutable UiState updated with update { }
Correct. One state and one owner fix the drift; full MVI is optional.
Why not the others?
- B Add an event bus between ViewModels. More moving parts, same drift.
- C Switch to LiveData. Changes the stream type, not the design.
- D Move state into the composables. Spreads state further.