https://kotlinlang.org logo
#compose-web
Title
# compose-web
o

Oleksandr Karpovich [JB]

06/24/2021, 2:33 PM
Hey everyone! 0.5.0-build226 build of web-core and web-widgets is available. It brings some CSS API updates which we expect should simplify the code. Apart from that, this build might cause errors in runtime if you have composable functions with default values for lambda parameters (reported here: https://github.com/JetBrains/compose-jb/issues/811 , also check out a possible workaround in the link below). Despite that, we decided to not postpone the new build announcement. We're preparing the fix. Check out more details here: https://github.com/JetBrains/compose-jb/releases/tag/0.5.0-build226-web
🎉 13
jetpack compose 6
h

hfhbd

06/24/2021, 4:56 PM
Thanks for the workaround. Now I have to update my API to nullable content 😄
o

Oleksandr Karpovich [JB]

06/24/2021, 5:03 PM
if you want, you might prefer to wait for build227
h

hfhbd

06/24/2021, 5:17 PM
I was convinced by the code-reduction argument
😉 1
🙂 1
👍 2
t

Tomáš Hubálek

06/25/2021, 7:39 AM
Hi, I tried to upgrade but when I change build225 to build226 I'm getting this error:
I searched my code for composable functions with arguments
something: ()->Unit={}
and I don't have any such a arguments of composable functions.
h

hfhbd

06/25/2021, 8:08 AM
As I mentioned in https://github.com/JetBrains/compose-jb/issues/811, this error does not only affect lambdas, but ALL default arguments, which will be
null
at runtime.
o

Oleksandr Karpovich [JB]

06/25/2021, 9:25 AM
build227 is available and it has a fix for default arguments.
h

hfhbd

06/25/2021, 9:26 AM
Lets try it 🎉
🙏 1
t

Tomáš Hubálek

06/25/2021, 9:26 AM
Cool, thanks for info.
👍 1
h

hfhbd

06/25/2021, 10:04 AM
Spoiler: it is working 🙂
🚀 2
3 Views