ProAndroidDev
Read post

Android Architecture Is Quietly Moving Beyond ViewModel as a State Holder

Android architecture is evolving away from treating ViewModel as the universal state holder. With Jetpack Compose and Navigation 3, each type of state now has a more appropriate owner: UI state lives in composables via `remember`/`rememberSaveable`, navigation state belongs to `NavKey`, and ViewModel is increasingly a producer of presentation logic rather than a container for all mutable state. Google's official guidance now distinguishes between business logic state holders (ViewModel) and UI logic state holders (plain classes), encouraging developers to ask 'who naturally owns this state?' rather than defaulting everything to ViewModel.

    #android#jetpack-compose
Jul 31•6m read time•From proandroiddev.com
Post cover image
Table of contents
Compose Changed the QuestionNot Every State Needs a ViewModelGoogle No Longer Treats ViewModel as the Only State HolderViewModel Is a Business Logic State HolderGet chanzmao ’s stories in your inboxNavigation 3 Completes the SeparationViewModel Is Becoming a State ProducerThe Architecture Becomes SimplerWhat About Configuration Changes and Process Death?Conclusion
9.4K Impressions
ProAndroidDev's image
ProAndroidDev

Pand's Blog provides developers with tutorials, tips, and insights on web development, frontend tech...

441 Followers

•

1.7K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard