Greg Steckman
07/20/2021, 2:02 AMTristan
07/23/2021, 2:25 PM@Preview
available with compose-web?Skovisen
07/25/2021, 7:52 PMHTMLDivElement
. My current solution appends this node to the body via document.body.appendChild(..)
but it feels subpar, and I’d like to know what the alternatives are. Is it possible to take this return value and make a composable of it?Nikolai Wotton
07/29/2021, 6:34 PMjuliocbcotta
07/31/2021, 6:36 PMArslan Armanuly
08/01/2021, 10:00 AMMrPowerGamerBR
08/02/2021, 12:57 AMMrPowerGamerBR
08/02/2021, 3:47 PMvar disableButton by remember { mutableStateOf(false) }
Button(attrs = {
style {
width(100.percent)
}
if (disableButton)
disabled()
}) {
Text("This is a button")
}
Button(attrs = {
onClick {
disableButton = !disableButton
}
}) {
Text("Toggle button")
}
Clicking the second button disables the first button... but it also removes the style (the width: 100%) of the first button!MrPowerGamerBR
08/02/2021, 3:47 PMBig Chungus
08/03/2021, 11:22 AMAlexander Kurasov[JB]
08/04/2021, 2:01 PM1.0.0-alpha2
is already available in the Maven repo.
While its API is not completely stabilized, we will strive to minimize API changes in future, focusing on stabilizing the framework on its way to beta and 1.0.
We believe that though the current version may have certain issues, it already could be used for early prototyping and PoC preparations of real applications built on Compose Multiplatform technology.
And as usual - feel free to share feedback about Compose Multiplatform, so that we could improve it. Enjoy composing!
P.S. Some details about the Release could be found here - https://blog.jetbrains.com/kotlin/2021/08/compose-multiplatform-goes-alpha/Arslan Armanuly
08/04/2021, 4:12 PMbrowserRun
gives runtime error that renderComposable
hasn't been replaced by the compose compiler. running browserDevelopmentRun
gives compile error with assertion error(see the reply), browserProductionRun
gives same assertion errorjuliocbcotta
08/04/2021, 7:10 PMChachako
08/06/2021, 6:25 AMOliver.O
08/06/2021, 12:34 PMProject `...` has `compose` and `kotlinx.serialization` plugins applied!
>>> Consider using these plugins in separate modules to avoid compilation errors
In a multiplatform build, it seems there is no way to apply a plugin to a selected module only. Am I correct to assume that a single multiplatform build script cannot be configured to create modules that way?darkmoon_uk
08/06/2021, 1:10 PMBig Chungus
08/07/2021, 9:35 PMbenkuly
08/11/2021, 2:46 PMImage
supported?sonder-joker
08/14/2021, 4:19 AMMarius Ailinca
08/14/2021, 10:05 AMMarius Ailinca
08/17/2021, 1:25 PM[webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema._- configuration has an unknown property '_assetEmittingWrittenFiles'. These properties are valid: ..._
Nikolai Wotton
08/18/2021, 6:40 PM./gradlew build
works fine, but ./gradlew jsBrowserProductionRun
fails consistently now. I’ve rolled back changes to where it was definitely working, so I’m guessing something wrong with my system not the repo. Anyone seen this before? Stacktrace in threadNikola Milovic
08/20/2021, 3:48 PMCaused by: org.gradle.internal.resolve.ArtifactNotFoundException: Could not find runtime-1.0.0-alpha2-samplessources.jar (org.jetbrains.compose.runtime:runtime:1.0.0-alpha2).
I had similar issue in another library and had to move to default compiler and not IR, and now idk if that breaks
implementation(compose.runtime)
implementation(compose.web.widgets)
I have a KMP project and a web-app module with this in the build gradleandylamax
08/21/2021, 4:07 AMandroidx.compose.ui.Modifier
while Compose for Web Modifier is entirely different and currently located at org.jetbrains.compose.common.ui.Modifier
, Isn't this a cry out for expect/actual declaration?
Or maybe I am missing something, Can someone in the Compose 4 Web team explain to me why such a decision was made?Tomasz Krakowiak
08/21/2021, 6:13 AMDerek Ellis
08/22/2021, 12:00 AMjs("{...}")
(or with the jsObject()
helper) to a composable function, there wouldn't be any way for the composable to know when to recompose if a property in that object changed because there's no real equality comparisons for plain JS objects. So if I want to pass data to a composable function, I don't really have a choice but to use Kotlin classes, right?andylamax
08/22/2021, 2:24 PMModifier.css { }
somewhere, where is it? Which package? or was it a custom implementation from someone?[JB] Shagen
08/24/2021, 12:38 PMhfhbd
08/26/2021, 8:32 AMcompileProductionLibraryKotlinJs
with latest compose version? https://youtrack.jetbrains.com/issue/KT-48425Dazai
08/28/2021, 12:24 AMDazai
08/28/2021, 12:24 AMBig Chungus
08/28/2021, 2:16 AMCLOVIS
08/28/2021, 9:31 AMDazai
08/29/2021, 12:16 AMBig Chungus
08/29/2021, 12:17 AMDazai
08/29/2021, 12:17 AMBig Chungus
08/29/2021, 12:18 AMDazai
08/29/2021, 1:51 AMhfhbd
08/30/2021, 6:17 PMindex.html
file with Ktor...) The packing could be done by Gradle tasks, see the official Ktor server templates created by the Kotlin plugin (new project, Kotlin, server template).