I'm working on a Compose Multiplatform JVM Desktop application and I'm trying to speed up UI development.
To compare the behavior, I created two sample projects:
• Project 1: Android + JVM
• Project 2: JVM only
On Android, Compose Preview is excellent. It has Interactive Mode, so I can click buttons, test animations, and iterate on the UI without launching the whole application.
My production application, however, is JVM Desktop only. It performs a lot of calculations during startup, so every small UI change requires:
• Running the entire application
• Waiting for initialization and data loading
• Navigating back to the screen I'm working on
I also tried Compose Hot Reload, but it reloads the screen state, so the expensive initialization happens again.
I noticed that Desktop Preview also requires me to manually click Refresh after code changes. Is there any way to make it refresh automatically like Android Preview?
So I'm wondering:
• Is there an Android-like Interactive Preview for Compose Desktop?
• Can Desktop Preview automatically refresh after code changes?
• How do you usually iterate on UI in large Compose Desktop applications without repeatedly launching the full app?
Any recommended workflow or best practices would be very helpful. Thanks!