Jetpack Compose: Surface makes state is persisting without remember
im currently experiencing with jetpack compose states. Check out this composable: @Composable fun CounterWithoutRemember(reset: MutableState<Boolean>) { val count = mutableStateOf(0) Box(Modifier.fillMaxWidth()) { Column { Text("Your count: ${count.value}") ElevatedButton(onClick = { count.value += 1 }) { Text("Add 1") } } } } This is working as expected. count is state without remember, that makes it resetting… Read More Jetpack Compose: Surface makes state is persisting without remember