https://kotlinlang.org logo
#compose
Title
# compose
t

Teck Wei Chan

01/26/2022, 2:25 PM
Okay, I'm not really sure what's going on... But
var show by rememberSaveable { mutableStateOf(false) }
causes
ClassCastException: Boolean can't be cast to String
on configuration change.
remember { ... }
works fine, of course. afaik,
rememberSaveable
uses bundle to save values so it should be fine, no?
d

Dominaezzz

01/26/2022, 2:26 PM
Sounds like bug. Do you have the full stack trace?
c

curioustechizen

01/26/2022, 2:30 PM
t

Teck Wei Chan

01/26/2022, 2:30 PM
@curioustechizen yea, just like that lmao
z

Zach Klippenstein (he/him) [MOD]

02/01/2022, 2:07 AM
Chuck already fixed this I believe, should be in a release soon if it's not out already.
🙌🏻 1