Stop Losing UI State on Rotation: State Hoisting with rememberSaveable in Jetpack Compose
Rotation wipes Compose state held in plain remember. Hoist it to the caller and switch to rememberSaveable, and your forms, toggles, and counters survive configuration changes with no ViewModel boilerplate.