Billy Newman
05/28/2021, 3:49 PMval scope = rememberCoroutineScope()
val scaffoldState = rememberScaffoldState()
That is not going to happen as these are not “rememberSavable”Billy Newman
05/28/2021, 3:51 PMAdam Powell
05/28/2021, 3:51 PMAdam Powell
05/28/2021, 3:52 PMconfigChanges
attribute of your activity tag in your manifest, because compose will react and update granularly for any of them anyway so you don't need activity recreation at allAdam Powell
05/28/2021, 3:52 PMAdam Powell
05/28/2021, 3:53 PMSnackbarHostState
into a ViewModel
or similar and pass it to the snackbar presentation you use; the data will persist along with the SnackbarHostState
Adam Powell
05/28/2021, 3:54 PMshowSnackbar
-ing about is similarly scoped to a CoroutineScope that will survive, or those calls will simply remove themselves from the snack queue when their scopes get cancelledBilly Newman
05/28/2021, 3:54 PMAdam Powell
05/28/2021, 3:55 PMAdam Powell
05/28/2021, 3:56 PMAdam Powell
05/28/2021, 3:56 PMBilly Newman
05/28/2021, 3:58 PMBilly Newman
05/28/2021, 3:58 PMBilly Newman
05/28/2021, 3:59 PMAdam Powell
05/28/2021, 3:59 PMBilly Newman
05/28/2021, 4:00 PMAdam Powell
05/28/2021, 4:01 PMAdam Powell
05/28/2021, 4:01 PMremember
persist ViewModel-style by default; that ended quickly when we worked through the implications. 🙂Billy Newman
05/28/2021, 4:02 PMAdam Powell
05/28/2021, 4:02 PMBilly Newman
05/28/2021, 4:06 PMAdam Powell
05/28/2021, 4:07 PMAdam Powell
05/28/2021, 4:09 PMremember {}
just works for compose-first activitiesBilly Newman
05/28/2021, 4:18 PMBilly Newman
05/28/2021, 4:19 PM