Managing State Beyond ViewModels and Hilt
summary
Migrates from Hilt to Anvil and replaces Android-controlled ViewModel lifecycles with an app-managed scope system that ties Dagger components and coroutine scopes to named scopes (root, user, locked-out) using Dagger multi‑bindings; implements a tiny scoped interface with onEnter/onExit and register/getService APIs to create and tear down services without leaking init details; builds a unidirectional presenter→model→renderer pipeline using CashApp’s molecule runtime and template renderers so business logic runs independent of activities and is easy to unit test with turbine.
AI-written summary · about
chapters (5)
- 0:00Introduction and background
- 8:31Architecture pain points identified
- 15:13Design principles and goals
- 25:34Removing ViewModels and Hilt
- 36:53Final recap and benefits
related talks
39mManaging state beyond ViewModels and Hilt
40mComposing ViewModels: Breaking ViewModels into smaller self-contained UI models
40mComposing ViewModels:Breaking ViewModels into smaller self-contained UI models
01h 03mState management in Blazor
52mState management beyond the libraries
35mBreaking Up with Big ViewModels
35mModel View Intent, Embracing Reactive UI's
26mExploring State Management in Phoenix LiveView
