Updated to dev16 today and I cannot do this anymor...
# compose
k
Updated to dev16 today and I cannot do this anymore. Why is mutableStateOf not allowing property delagates anymore? Am i missing something?
Copy code
class Position(x: Int, y: Int) {
    var x by mutableStateOf(x)
    var y by mutableStateOf(y)
}
g
Maybe wrong import?
k
The import is androidx.compose.runtime.mutableStateOf
Probably it will suggest import if you press alt + enter on
by
1
r
I found the same issue
The fix apparently is to import androidx.compose.runtime.*
@Leland Richardson [G] fyi
k
Thank you @romainguy it works now with your suggestion
l
This isn't intended and might be a bug with kotlin 1.4.