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

Add PromiseInvalidationToken.cancelWithoutInvalidation() #23

Closed
lilyball opened this issue Aug 31, 2018 · 0 comments
Closed

Add PromiseInvalidationToken.cancelWithoutInvalidation() #23

lilyball opened this issue Aug 31, 2018 · 0 comments
Milestone

Comments

@lilyball
Copy link
Owner

It may be useful to have a PromiseInvalidationToken.cancelWithoutInvalidation() method that cancels any associated promises without invalidating the token.

The use-case here is when you want to cancel e.g. a request but you're not kicking off a replacement, so you want any onCancel and always handlers to fire. As the recommended style is to not hold onto Promises directly but to just hold onto the token, we need some way to cancel the associated promises without actually invalidating the token.

@lilyball lilyball added the TODO label Aug 31, 2018
@lilyball lilyball added this to the Next milestone Aug 31, 2018
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

No branches or pull requests

1 participant