I watched KotlinConf video "How to Build a React A...
# javascript
x
I watched KotlinConf video "How to Build a React App in Kotlin by Dave Ford". Now I'm trying to reproduce this setup for rapid development. But I have problem: create-react-kotlin-app@1.0.6 doesn't perform hot module swapping for Kotlin code (only for CSS). And exactly this behaviour is described in docs https://github.com/JetBrains/create-react-kotlin-app/blob/3906d92c8111608c662ad2abdd3140f62b6368ec/packages/react-scripts/config/webpackDevServer.config.js#L65 But somehow during live demo speaker managed to get it work. I wonder how.
b
cc @Filipp Riabchun @houston @daveford
h
I will check it, it might be just bug introduced recently. Thanks for reporting
@xap4o As about “Hot module swapping”, do you mean hot module replacement without page reload?
x
@houston yes, exactly
h
@xap4o I’m afraid that HMR is not supported for kotlin compiled code yet. In that video – there shouldn’t be HMR, it was just quick live reload.
x
@houston hm, ok. Hopefully HMR will be supported in the future.