Skip to content

Conversation

@filblue
Copy link
Contributor

@filblue filblue commented Sep 1, 2021

No description provided.

Copy link
Member

@stephencelis stephencelis left a 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?

filblue and others added 3 commits September 1, 2021 21:24
…AndLoad.swift

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
…esentAndLoad.swift

Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
@filblue
Copy link
Contributor Author

filblue commented Sep 1, 2021

@stephencelis I've also added cancellation to UIKitCaseStudies/NavigateAndLoad.swift. I believe LoadThenNavigate ones don't need this, right?

@stephencelis
Copy link
Member

@stephencelis I've also added cancellation to UIKitCaseStudies/NavigateAndLoad.swift. I believe LoadThenNavigate ones don't need this, right?

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.

@filblue
Copy link
Contributor Author

filblue commented Sep 1, 2021

@stephencelis thank you for clarification, updated.

@filblue filblue requested a review from stephencelis September 1, 2021 19:40
Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

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

Thanks!

@stephencelis stephencelis merged commit dacd3de into pointfreeco:main Sep 1, 2021
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.

2 participants