In a Composable function, I could not just call `i...
# compose
g
In a Composable function, I could not just call
invoke()
on a reference of another Composable function, will that work someday?
m
I have had a number of challenges in doing this. The Kotlin compiler plugin magic makes this difficult. FWIW, I filed https://issuetracker.google.com/issues/157590194 for the feature request.
a
foo.invoke()
as opposed to
foo()
not working is a bug, iirc. Reflection is a bigger question.
m
Oh, yeah, sorry -- I misinterpreted the question. It's https://issuetracker.google.com/issues/149424759 instead. (though in truth I suspect that the scenarios are related, in that call patterns that bypass plugin expectations won't work)
👍 1
g
Cool, happy to see it's on the roadmap 😊