François
03/26/2025, 8:01 AMKoinApplication
using Compose Hot Reload ?
The first start is fine, but when the reload is triggered, Koin throws an error as the KoinApplication is called gain.
Koin context has not been initialized in rememberKoinApplication
I know hotReload is new but apparently pretty stable and It will be unavoidable.
FYI: the hot reload run on the Desktop/JVM target.arnaud.giuliani
03/26/2025, 2:15 PMFrançois
03/26/2025, 2:22 PMarnaud.giuliani
03/26/2025, 2:36 PMFrançois
03/26/2025, 2:38 PMKoinApplication
is designed to start a CMP app and avoid startKoin
, no?François
03/26/2025, 2:42 PMarnaud.giuliani
03/27/2025, 1:30 PMFrançois
03/27/2025, 3:37 PMarnaud.giuliani
03/28/2025, 8:22 AMFrançois
03/28/2025, 9:37 AMarnaud.giuliani
03/28/2025, 2:13 PMCompose hot reload make the app restart itself.from where does it restart?
François
03/28/2025, 2:22 PMfun main() {
singleWindowApplication(
title = "My CHR App",
state = WindowState(width = 800.dp, height = 800.dp),
alwaysOnTop = true
) {
DevelopmentEntryPoint { <--
MainPage()
}
}
}