Does anyone get `java.lang.RuntimeException: Parce...
# compose
t
Does anyone get
java.lang.RuntimeException: Parcel: unable to marshal value androidx.compose.runtime.SnapshotMutableStateImpl
error after alpha 12?
p
Got this error as well, but haven't investigated further yet.
t
Seems like something todo with
rememberSaveable { mutableStateOf(0) }
and
NavHost
, I'll post a minimal reproducible example here
step to reproduce: start the app, and press the home button, it will crash with the exception
a quick workaround is implementing a custom saver
s
Yep me too
Unfortunately the workaround doesn't work for me
a
yes it is a bug, sorry. the main bug for it: https://issuetracker.google.com/issues/180042685. it contains some temporary workarounds you can use
👍 2
t
Good to hear that!
154 Views