Alex
11/17/2021, 9:22 AMby remember { mutableStateOf(selection) }
instead of rememberUpdatedState
? Seems like the latter is the same just more refined?nitrog42
11/17/2021, 9:31 AMnitrog42
11/17/2021, 9:33 AMrememberUpdatedState
is val only, while remember { mutableState) can be a var/modifiednitrog42
11/17/2021, 9:34 AMAlbert Chang
11/17/2021, 10:08 AMselection
, while the latter turns selection
into a State
, which will be updated when selection
changes.