Do Fullstack KMM projects with web+ jvm backend su...
# multiplatform
f
Do Fullstack KMM projects with web+ jvm backend support hot reloading the Kotlin/JS code?
b
@Robert Jaros had that working with kvision and legacy backend. Not sure if it's possible yet with ir.
r
Yes, it is. You have to run two different gradle tasks in two consoles. One is running standard Kotlin/JS webpack dev server and the other is running your backend server. You need to configure webpack to proxy backend calls.
b
Oh, I thought OP meant hot reload without browser refresh
r
It's also possible.
b
I'd be a lot more interested in how to do that with ir 😀
b
Is that all that's needed? How do you preserve state?
b
Awesome, thanks
r
This is in fact the same old code from the deprecated
kotlin-frontend-plugin
example project: https://github.com/Kotlin/kotlin-frontend-plugin/tree/master/examples/frontend-only/src/main/kotlin/test/hello
It's not documented anywhere in the current docs but still works.