trying to save a set of serializable items across ...
# compose
m
trying to save a set of serializable items across config changes, but have a weird error. It saves fine for a single item in the set, but fails for more than one 🧵
Copy code
var items by rememberSaveable { mutableStateOf(emptySet<T>()) }
it seems to unpack the set to individual items when the check is performed
crashes for set but works for list, somehow 🤷
z
Please file a bug
👍 1
m