one silly question but informatic, what is the act...
# koin
s
one silly question but informatic, what is the actual difference between
factory
and
single
in Koin?
v
From the docs
A factory component declaration is a definition that will gives you a new instance each time you ask for this definition
Declaring a singleton component means that Koin container will keep a unique instance of your declared component
https://doc.insert-koin.io/#/koin-core/definitions?id=defining-a-factory
👍 1
c
both are creational pattern
s
Thank you all