---
title: "#android-viewmodel articles | Hashnode"
description: "Explore 1 articles tagged #android-viewmodel on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/android-viewmodel"
---

Tag

# #android-viewmodel

1 posts · 0 followers

[Android Expert](https://hashnode.com/@android-expert) · [Nov 2](https://hashnode.com/posts/keep-the-expensive-stuff-alive-a-field-guide-to-retain-in-jetpack-compose/6ae8b9f665daa323731bb2dd)

### [Keep the Expensive Stuff Alive: A Field Guide to retain in Jetpack Compose](https://android-expert.hashnode.dev/keep-the-expensive-stuff-alive-a-field-guide-to-retain-in-jetpack-compose?utm_source=hashnode&utm_medium=feed)

Learn how Jetpack Compose retain() keeps heavy objects alive across rotation, when to pick it over ViewModel, and four production pitfalls to avoid.

9 min read · [android-expert.hashnode.dev](https://android-expert.hashnode.dev/keep-the-expensive-stuff-alive-a-field-guide-to-retain-in-jetpack-compose?utm_source=hashnode&utm_medium=feed)
