-
Hi, what's the difference between that-depends and modern-di? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
lesnik512
Nov 10, 2024
Replies: 1 comment 2 replies
-
@Jonas1312 Hi!
So |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Jonas1312
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Jonas1312 Hi!
modern-di
has scopes. Thanks to them it is easier to manage dependencies lifecycle.modern-di
does not have global state. All state lives in containers of different scopes including overrides (mocks).That depends
has global state inside providers and local state inside contextvarsmodern-di
requires integration logic for web-frameworks to create container on each request and to resolve dependencies.That depends
mostly does not require integration logic except for context resources.that-depends
is production-ready, tested in production in many projects.modern-di
is in early state of development and I have only started to integrate it to my work project