https://kotlinlang.org logo
#compose
Title
# compose
r

rook

05/09/2022, 7:29 PM
I’m not sure if this is a bug or I’m missing something, just looking for validation. The following renders nothing in either preview or at application runtime:
Copy code
val someFun: (@Composable () -> Unit)? = null
someFun?.invoke() ?: BasicText(text = "Foo")
Edit: Found the issue in the bug tracker: https://issuetracker.google.com/issues/198511576. Unfortunately, it’s still not fixed.
t

tad

05/09/2022, 7:39 PM
Should be in the next release, looks like
🙏 1
r

rook

05/09/2022, 7:40 PM
Ah, that’s great news!
2 Views