Koin: How to handle scope?
Nov 4 · 2 min read
Most of the time we end up in a place where you need a dependency only for a specific duration of time.
By default in Koin, we have 3 kinds of scopes:
singledefinition, create an object that persistent with the entire container lifetime (Similar to Singleton).factorydefinition, create a new object each time. No persistence in the container (can’t be shared).scopeddefinition, create an object that persistent tied to the associated scope lifetime.

