Remembering the State in Jetpack Compose
3 min readMar 8, 2021
When starting to work with Jetpack Compose (now that it is in beta 🎉) and stateful components, we easily get used to define values based on a mutable state which are also remembered. But there are two independent concepts when we write a line of code like below:
var clicks by remember { mutableStateOf(0) }
- mutableState* family functions return an observable value for…