-
Notifications
You must be signed in to change notification settings - Fork 1.6k
NavigateAndLoad: Cancel loading on dismiss #757
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
NavigateAndLoad: Cancel loading on dismiss #757
Conversation
stephencelis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! We're definitely down to adding cancellation to case studies that fire off effects like this. Just one note on preferring delay to deferred in these cases.
Would you like to add cancellation to the other loadable studies as well?
Examples/CaseStudies/SwiftUICaseStudies/03-Navigation-NavigateAndLoad.swift
Outdated
Show resolved
Hide resolved
Examples/CaseStudies/SwiftUICaseStudies/03-Navigation-Sheet-PresentAndLoad.swift
Outdated
Show resolved
Hide resolved
…AndLoad.swift Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
…esentAndLoad.swift Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
|
@stephencelis I've also added cancellation to |
I think they do. If you back out of those studies while the request is in flight, they'll still write to state, which means if you drill back in it'll immediately double-drill you to the loaded state. |
|
@stephencelis thank you for clarification, updated. |
stephencelis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No description provided.