If/Else in Compose Is Not View.GONE: Where Your State Goes When a Branch Flips
You ship a filter screen. QA toggles between “List” and “Grid”, scrolls the list, types into a search box, switches back, and everything is reset. The code looks harmless:
@Composable
fun Conditional(