Hey, first time using Kotlin wasm, trying to run c...
# compose-web
p
Hey, first time using Kotlin wasm, trying to run compose web app. Should the webpage hot-reload, when running
wasmJsBrowserDevelopmentRun -t
? I see the page blink, so I guess it reloads, but changes are not applied for some reason.
z
It's just reloading the static assets like index.html and anything else but it's not recompiling Kotlin, at least in my experience
🤔 1
a
Did you try to add a dependency, in your `libs.versions.toml`:
Copy code
composeHotReload = { id = "org.jetbrains.compose.hot-reload", version = "1.0.0-alpha05" }
and use it in
gradle.build.kts
, next to your compose:
Copy code
plugins {
    alias(libs.plugins.compose.compiler)
    alias(libs.plugins.composeHotReload)
and:
Copy code
composeCompiler {
    featureFlags.add(ComposeFeatureFlag.OptimizeNonSkippingGroups)
}
p
Not yet, will give it a go. Ty
f
AFAIK, composeHotReload only runs on jvm desktop target but not other target
1
👍 1
👌 1