Dragos Rachieru
12/15/2021, 3:34 PMrememberSaveable
on Desktop and Android, I have a sealed class that doesn't extend Serializable
or Parcelable
, the code works fine on Desktop, but does not work on Android.
How can I handle this? I was thinking of creating a custom saver for that, but serialization does not work with compose in the same module, so I'm trying to avoid that for now.Zach Klippenstein (he/him) [MOD]
12/15/2021, 7:04 PMDragos Rachieru
12/16/2021, 10:59 AMsaver
, like serialization
.
I can use serialization for this, but I don't know if compose works with serialization in the same project now.Zach Klippenstein (he/him) [MOD]
12/16/2021, 2:55 PMZach Klippenstein (he/him) [MOD]
12/16/2021, 2:57 PMBundle
and Parcelable
are designed and optimized to be used for this use case, other serialization libraries might do work too soon