Uli Bubenheimer
09/12/2022, 7:35 PMcurrentCompositeKeyHash
aka currentComposer.compoundKeyHash
well-defined? rememberSaveable()
uses it for save keys, but if I add something like key(objectWithDefaultHashKey)
to my Compose hierarchy then I assume the save key will be different before and after process death, and whatever I saved would not be restored, right? My particular use case has key(enumValue)
, which I assume would also have different hash values before and after process death, based on what Enum.hashCode()
does.
Would I be in the clear then, as far as rememberSaveable()
goes, if I used something like key(enumValue.myStringLabel)
instead?
The reason for my question is this comment from a Googler: https://issuetracker.google.com/issues/152014032#comment4Andrey Kulikov
09/18/2022, 3:25 PMkey()
, we essentially use enum.ordinal() instead