Replies: 1 comment 3 replies
-
Hi @abdalalii1, it is hard to give a precise answer without knowing more about your exact situation. Perhaps you can sketch out some code that demonstrates what you currently have and what you are trying to accomplish. At a very high level, the tool that allows you to transform dependencies for just a single feature of the app is the Feature()
.dependency(\.apiClient, …) That's the basic tool, but proper usage of it depends on your exact situation. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone, I'm currently working on a project that utilizes the composable architecture, and I'm seeking guidance on adapting dependencies. Specifically, I'm facing a challenge with a reusable view responsible for displaying paginated list of posts. The difficulty arises because the data for this view originates from two different endpoints, with one of them requiring dynamic parameters, which are inputs needed from the parent reducer.
To ensure the composability of both the view and the reducer, I'm unsure of the best approach for adapting this dependency. I'm considering options like duplicating the view, maximizing the configurability of the view, or adapting the web service.
I would greatly appreciate any advice or insights you can provide on how to handle this situation effectively. Thank you in advance for your assistance!
Beta Was this translation helpful? Give feedback.
All reactions