How to Refactor a 400-Line ViewModel: The Reducer Pattern in Android MVI

Your LoginViewModel started simple. Three events, a clean when block, easy tests. Eight months later it's 400 lines, six developers have…