Replacing Nested Dependencies in Layers

👋 Hello. Is it possible to easily replace dependencies that are nested multiple levels deep into layers?

So if I have Service1 which depends on Service2, and Service3 which depends on Service2, and I construct a layer that provides Service3 and fulfill all dependencies.

With access to the layer that provides Service3, is there a way I can swap out Service1 or Service2?

Effectively I want to be able to say "For every effect in this program, anything anywhere that tries to use Tag X will receive some alternate implementation of the tag.
Was this page helpful?