Trouble with Local Dependency Provision in Layered Architecture
Hi!
I'm trying to locally provide some of my dependencies - but they it doesn't seem to work the way I expected.
- I'm providing MessageRepository to BaseAgent with Layer.provide
- But it doesn't seem to actually provide it further down the dependency tree
- It works if I add the dependency up at the top level where I'm using Layer.mergeAll <- but there are a lot of dependencies I'd prefer to keep away from the top to simplify usage a bit
Does anyone here know what I'm missing?
I'm trying to locally provide some of my dependencies - but they it doesn't seem to work the way I expected.
- I'm providing MessageRepository to BaseAgent with Layer.provide
- But it doesn't seem to actually provide it further down the dependency tree
- It works if I add the dependency up at the top level where I'm using Layer.mergeAll <- but there are a lot of dependencies I'd prefer to keep away from the top to simplify usage a bit
Does anyone here know what I'm missing?




