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

Tag

# #compose-recomposition

1 posts · 0 followers

[Android Expert](https://hashnode.com/@android-expert) · [Nov 1](https://hashnode.com/posts/if-else-in-compose-is-not-view-gone-where-your-state-goes-when-a-branch-flips/6ae72f6615fed1c2daabaf6e)

### [If/Else in Compose Is Not View.GONE: Where Your State Goes When a Branch Flips](https://android-expert.hashnode.dev/if-else-in-compose-is-not-view-gone-where-your-state-goes-when-a-branch-flips?utm_source=hashnode&utm_medium=feed)

Why Jetpack Compose destroys remember state when an if/else branch flips, why AnimatedVisibility won't preserve it, and five production-ready fixes.

10 min read · [android-expert.hashnode.dev](https://android-expert.hashnode.dev/if-else-in-compose-is-not-view-gone-where-your-state-goes-when-a-branch-flips?utm_source=hashnode&utm_medium=feed)
