Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the onStart callback to SwiftUI.LazyImage #736

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

urbaneewe
Copy link
Contributor

No description provided.

@@ -184,6 +188,10 @@ public final class FetchImage: ObservableObject, Identifiable {
handle(result: .failure(error))
}
}

if let task = imageTask {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The task is always going to be empty at this point, to it's not going to get called. I'm not entire sure why I added this load() variant in the first place, to be honest, but I think it would be acceptable to not call onStart here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, I agree, I wasn't sure if you had something planned so I added it just in case. I'll remove it

@kean
Copy link
Owner

kean commented Nov 18, 2023

Hey, thanks for fixing the typos as well, @urbaneewe; merging.

@kean kean merged commit cb57874 into kean:main Nov 18, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants