You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to store some data in a Singleton class and use it as long as the app process is alive. Currently this is a limitation because of the DI framework being used. See for more details: InsertKoinIO/koin#2078
When we create a singleton class in Koin, it is only scoped to the activity and not the entire app lifecycle. As soon as the configuration is changed, a new object for Singleton class is created (not truly singleton). If the same object is re-used across config changes, we could store and retrieve data from it.
Proposed Solution
Use other multiplatform DI libraries such as kotlin-inject / KodeIn, but need to first try out if they have the same issue.
Problem
We should be able to store some data in a
Singleton
class and use it as long as the app process is alive. Currently this is a limitation because of the DI framework being used. See for more details: InsertKoinIO/koin#2078When we create a singleton class in Koin, it is only scoped to the activity and not the entire app lifecycle. As soon as the configuration is changed, a new object for Singleton class is created (not truly singleton). If the same object is re-used across config changes, we could store and retrieve data from it.
Proposed Solution
Issue Screenshots
Alerts_Issue.mov
The text was updated successfully, but these errors were encountered: