-
I have a DependencyA that depends on DependencyB. This is what the implementation looks like:
then I override DependencyB to use the test value inside the start of the app:
However, when I access DependencyA later in the app, it seems like it's using the In my head, at this point DependencyA should be using the Regarding the architecture of the app, I'm using ViewModels instead of TCA. The app is still fairly small right now and the point where I access DependencyA and it's returning unexpected results is only 3 scenes into the app and I've made sure to always wrap creation of any If I overwrite any dependencies it seems like it's being propogated correctly, the only case this doesn't seem to work is when I have a dependency depending on another dependency as listed above. As a workaround, right now I just override both dependencies with I've searched around and AFAIK this is the recommended way to accomplish what I'm trying to do. Any help is appreciated. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This may be related to #71 and we are currently trying to figure out the best way forward. It does seem that using dependencies from dependencies in non-"single entry point" applications comes with some subtle edge cases. We hope to improve the tools soon. |
Beta Was this translation helpful? Give feedback.
This may be related to #71 and we are currently trying to figure out the best way forward. It does seem that using dependencies from dependencies in non-"single entry point" applications comes with some subtle edge cases. We hope to improve the tools soon.