As far as I know, with Android Compose,
SavedStateHandle
is used with ViewModel
and follows the ViewModel
lifecycle and key-value map and it can be used as flow.
rememberSaveable
is used with variables in Composable
and follows the Composable lifecycle.
And both are used to prevent data loss when the activity gets destroyed by the system.
Are there any other differences?