I'm trying to understand why can't we have hot reloads with jetpack compose and kotlin. I understand flutter sends the code and rebuilds the widget tree but why can't we achieve similar with jetpack compose?
If I had to make a third party tool to enable hot reloads, how would I proceed to make it? Is it possible?
CodePudding user response:
There is now a Live Edit function available in Electric Eel Canary builds of Android Studio. It is still experimental but works well. You can find the details here: Iterative Code Development
"Starting with Android Studio Electric Eel, you can accelerate your Compose development experience by using Live Edit. Live Edit is a more powerful version of Live edit of literals. The functionality allows you to see the effect of updates to composables in real time by automatically updating the Preview and deploying code changes to an emulator or device."
I believe this is very close to Flutter Hot Reload.