Skip to content
Discussion options

You must be logged in to vote

@oskarek While it's possible to do a little coordination with your store to make it so refreshable effects are only tied to the first stage, the main thing that stands out to me here is that you're doing image loading in a reducer. Is your reducer doing any significant logic with the images it is loading, and are you testing this logic?

We generally do not recommend loading or storing images in your app's domain if it's for display purposes. Instead we recommend using AsyncImage or one of the many open source image loading libraries out there.

For the more general case, though, you would sequence actions into the store in the refreshable modifier:

.refreshable {
  await viewStore.send(.ac…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@oskarek
Comment options

@stephencelis
Comment options

@oskarek
Comment options

@oskarek
Comment options

@stephencelis
Comment options

Answer selected by oskarek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants