Any idea what’s wrong with this?
# compose
d
Any idea what’s wrong with this?
v
Can you try adding this to the import and see if it works
Copy code
import androidx.compose.runtime.getValue
❤️ 1
d
magic! it worked!
what’s the reason why it wasn’t added automatically?
v
I believe it’s an IDE bug where the imports for the state’s don’t happen properly. I’ve encountered it before, hence… 😄
d
thanks!
🙌🏼 1
z
This bug is definitely the most annoying thing about using Compose fir me right now. You can get the import suggestion to work by explicitly passing the type arguments to the outermost call (eg
remember<MutableState<String>> { mutableStateOf("") }
)
☝️ 2
👍 1
l
Why not report the bug?
a
We're tracking it. It's really painful, we know. Please pardon the dust 🙏
z
Do yall have a KT issue we can follow for this? Seems like a kotlin bug, not a compose one.
👀 1