Core container as singletone for entire app #557
Unanswered
VasyaGaikin
asked this question in
Q&A
Replies: 1 comment
-
This looks like a good use case for
Then constructing the containers would look something like this:
This would only require one instance of the |
Beta Was this translation helpful? Give feedback.
0 replies
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