Screenshot 2021-10-24 at 17.01.51.png
# compose
a
Screenshot 2021-10-24 at 17.01.51.png
g
Do you have an import? import androidx.compose.runtime.setValue
Also, it looks that you call remember outside of composable function
z
What's more, you don't need remember here since remember’s reason for being is to remember a value between recompositions (which isn't even a thing in a class). See https://dev.to/zachklipp/remember-mutablestateof-a-cheat-sheet-10ma