Hello! When enabling trying K2 compiler my code st...
# k2-adopters
p
Hello! When enabling trying K2 compiler my code starts to fail at compile time with message
@Composable invocations can only happen from the context of a @Composable function
. It fails at those places where I use lambda for passing composables as paramaters. Now I need to explicitly write @Composable annotation on each such lambda. For example:
ListItem(supportingContent = @Composable {})
Previously I can write:
ListItem(supportingContent = {})
Is it required for K2 now, or somehow can be set to compile without such restrictions?
d