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

theapache64

06/15/2021, 8:47 AM
RESOLVED:🔥 Do we have hot reload in compose-web?
s

solidogen

06/15/2021, 8:48 AM
yes, I used it
also worked for jsBrowserDevelopmentRun
t

theapache64

06/15/2021, 8:51 AM
Damn. this is 🔥 , so basically passing
--continuous
would make it hot-reloadable. How did u know it? Do we have a doc explaining the available flags?
s

solidogen

06/15/2021, 8:51 AM
I used react-kotlin in the past, I tried if it works and it did
t

theapache64

06/15/2021, 9:31 AM
Understood 👍 thanks
c

CLOVIS

06/15/2021, 10:31 AM
Fun fact, you can also use
test --continuous
to hot-reload your unit tests (they get automatically executed again everytime you save the project), and many other tasks
😮 5
👍 3
(and that works for all targets, I use it on JVM and JS to test the back&front when I work on the API) The UI in IDEA is not great, but it works well
t

theapache64

06/15/2021, 10:33 AM
that's amazing. thanks for the tip @CLOVIS
a

Arkady Bazhanov

06/15/2021, 3:00 PM
I think
--continuous
and such aren’t doing hot reload but are doing live reload. The difference is that state (non-persistent) is not preserved
👍 2