rememberSaveable
Keep state across configuration changes.
The Problem with remember
remember survives recomposition, but not configuration changes like screen rotation. When the activity is recreated, remembered state is lost and resets to its initial value.
Enter rememberSaveable
rememberSaveable works like remember but also saves the value across configuration changes and process death, then restores it.
var count by rememberSaveable { mutableStateOf(0) }