Open corentin-stamper opened 2 weeks ago
Hey @corentin-stamper, thanks for the report. Could you expand on why this property needs to be @Composable
? I'm not a Compose expert, if this is something we need to be able to support we can look into modifying our parser to do so
Hey @tomduncalf-figma, thanks for the answer.
In my exemple, I need to map my "Shape"
enum to Material3 values. These values are @Composable
.
Without the @Composable
annotation, I got this error :
@Composable invocations can only happen from the context of a @Composable function
Thanks @corentin-stamper, this sounds like something we should probably add support for. I'll raise for discussion with the team and add to the backlog if we agree we should do it
Configuration
Code Connect CLI version:
1.1.4
Sources
Result (parser)
Problem/Question
I'm trying to map an enum to a
@Composable
values using theget() =
accessor. This format produce an issue during the parsing.It's works with this format but I got a lint error (because the
@Composable
annotation is required)