Core container as singletone for entire app #557
Unanswered
VasyaGaikin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
App Package (Container) Diagramm
The
CoreContainer
container contains:The main question is about
CoreContainer
. Is there a way to make itshare for the entire application? The only way I found is when
importing top-level containers (
CleanContainer
,DatabaseInitContainer
,ParseContainer
, ...) specify theCoreContainer
as adependency and pass it into the child containers.
when I do this:
then all elements in
CoreContainer
are initialized multiple times.It was it would be convenient if the container itself was like a
Singletone
for the entire application.Beta Was this translation helpful? Give feedback.
All reactions