InsertKoinIO / koin

Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
https://insert-koin.io
Apache License 2.0
8.76k stars 695 forks source link

App Crashing in Ios screen Rotation #1884

Open pankaj1920 opened 1 month ago

pankaj1920 commented 1 month ago

org.koin.core.error.KoinAppAlreadyStartedException: Trying to run new Koin Application whereas Koin is already started. Use 'KoinContext()' instead of check for any 'startKoin' usage.

In ios whenever i rotate screen app is crashing and getting error but in android app is not crashing on rotate of screen,

Version

}

In SharedModule.kt file

fun getSharedModules(context: Context) = listOf(authModule(),homeModule(), datastoreModule(context), networkModule())