You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating an app that needs to interact with a dependency through the store to get a high resolution image. I am stuck on how to best get the result back from the dependency or is there a better way to approach this? See chart below. Is hiding the AssetClient in this case behind a Store the best way or should this be a class that is available from the view controller?
If I create a separate class (route 6 below), I fear losing ability to have previews, testability etc.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am creating an app that needs to interact with a dependency through the store to get a high resolution image. I am stuck on how to best get the result back from the dependency or is there a better way to approach this? See chart below. Is hiding the AssetClient in this case behind a Store the best way or should this be a class that is available from the view controller?
If I create a separate class (route 6 below), I fear losing ability to have previews, testability etc.
Beta Was this translation helpful? Give feedback.
All reactions