Hey peeps, I started using Kotlin recently and whi...
# getting-started
v
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
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
Ohh, thanks a lot! I missed it somehow. Yep, building a server-side app using Ktor.👍🏽🙂