https://kotlinlang.org logo
#getting-started
Title
# getting-started
v

vsr

03/16/2021, 3:54 PM
Hey peeps, I started using Kotlin recently and while trying to build my first Gradle-based task using Ktor (https://ktor.io/docs) I realised I had to kill the running task (
./gradlew run
) after making code changes. Is there a hot module reloading concept in Kotlin (coming from a frontend background) 🙂
t

tseisel

03/16/2021, 5:05 PM
Ktor has a Hot Reload feature, but it is only applicable to server-side applications built with Ktor ; that won't work if you are using
ktor-client
to perform HTTP requests. Because Kotlin is only a programming language (just like JavaScript) it does not have Hot Module Reloading on its own. It is a feature provided by a framework/bundler.
v

vsr

03/17/2021, 6:38 AM
Ohh, thanks a lot! I missed it somehow. Yep, building a server-side app using Ktor.👍🏽🙂
4 Views