I'm seeing some weird behaviour with `rememberSave...
# compose
a
I'm seeing some weird behaviour with `rememberSaveable`; Compose 1.6.0-alpha04.
Copy code
val remembered = rememberSaveable(input) { input } // input is a stable parcelized data class
Docs say it would recalculate when
input
changes, but that doesn't always happen. For example,
println("input ${input.id}, remembered ${remembered.id}")
immediately after shows a mismatch. Not sure if this is a recent bug or I'm doing something wrong. Do I need to pass
key
as well? That feels like extra work for no reason.
Could this change be the culprit? SideEffect running out of order and updating
input
, thus making
getValueIfInputsDidntChange
return null?
z
Please file a bug
a
Certainly will, once we can slim it down to a reproducible repo