jw
12/04/2021, 6:00 PMspierce7
12/04/2021, 6:04 PMvar count by remember { mutableStateOf(0) }
This is state in the presenter, right? Do you just mean once the UI has been navigated away from it, all state is lost?
You’re free to hook up the regular save instance state stuff like Compose UI does thoughI haven’t tried this is compose multiplatform yet. I’ll look into it. Thanks
jw
12/04/2021, 6:35 PMjw
12/04/2021, 6:35 PMsaket
12/04/2021, 6:35 PMremember
will be remembered during the lifecycle of your presenter. It's upto you how you manage/retain your presenters.saket
12/04/2021, 6:36 PMrememberSaveable
be used from molecule? If yes then I'd imagine they're saved in the same way as Compose UI -- by hooking into a state registry owned by your app.jw
12/04/2021, 6:36 PMPaul Woitaschek
12/04/2021, 6:40 PMsaket
12/04/2021, 6:44 PMPaul Woitaschek
12/04/2021, 7:08 PMPaul Woitaschek
12/04/2021, 7:10 PMsaket
12/04/2021, 7:48 PMjw
12/04/2021, 9:12 PM