Carter
07/04/2024, 1:00 PMorg.jetbrains.compose.web.dom.Div {
org.jetbrains.compose.web.dom.Button(attrs = {
onClick {
action()
}
}) {
org.jetbrains.compose.web.dom.Text("Let's Start!")
}
}
The exception is:
TypeError: e is not a function
at Hi (Base.kt:140:13)
at nr (Elements.kt:497:5)
at ns (Intro.kt:42:5)
at us (MainView.kt:136:34)
at as (MainView.kt:114:13)
at os (MainView.kt:65:13)
at Sr (App.kt:28:5)
at ft (Entrypoint.kt:93:21)
at sn.r7q (ComposableLambda.jb.kt:107:22)
at fa2_1 (Entrypoint.kt:92:19)
In terms of isolating it, either of these changes make the crash go away:
• The onClick attr is removed
• The outer Div is removed
Is Compose 1.7.0-alpha01 just broken, or were there some API. changes I should be accounting for?Robert Jaros
07/04/2024, 1:13 PMRobert Jaros
07/04/2024, 1:14 PMRobert Jaros
07/04/2024, 1:22 PMIgor Demin
07/04/2024, 3:05 PMmaven("<https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/>")
)Pau Marzo
07/04/2024, 4:03 PM