Hello everybody, I recently encouraged to this pro...
# compose
e
Hello everybody, I recently encouraged to this problem which I cannot use another delegated property with
mutableStateOf
extenstions to delegate, How I can fix this? https://kotlinlang.org/docs/delegated-properties.html#observable-properties
z
I think this is a compiler bug. I see the error go away if i store the delegate object in another val first:
Copy code
@Composable public fun Foo() {
  val remembered = remember { Delegates.observable(0) { _, _, _ -> TODO() } }
  var bar: Int by remembered
}
🙌 1
This happens without compose too though, so i would file a bug to Kotlin itself
👀 1
s
So I updated a few libraries based on the latest template and things started to work. No idea what it was but I'm good for now.
z
¯\_(ツ)_/¯
s
The dark arts of engineering 🙂
Thanks again for the response... I'm sure I'll have many more questions on this journey