Globally swapping the live value out #248
Replies: 1 comment 3 replies
-
Hi @jasonzurita, this is not possible with our library, and honestly it's actually a good thing that we do not allow this. Being able to globally mutate dependencies whenever you want is a recipe for uncertainty in a code base. Even with the world approach we have previously recommended people do Rather than thinking about swapping out the entire dependency for a "disabled" one you should think about putting that functionality into the dependency itself, so that you can do |
Beta Was this translation helpful? Give feedback.
-
Something I've been trying to translate over from the world approach to dependency management is the flexibility of globally swapping out the live value. E.g.,
I came across the docs for overriding dependencies that are scoped. This is pretty neat, but not what I am looking for unfortunately.
Is this something that's possible using the Dependencies library? I assume it is, but I've been coming up short.
Beta Was this translation helpful? Give feedback.
All reactions