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 resetOnFulfilled and resetOnRejected options #100

Open
kellyselden opened this issue Sep 18, 2017 · 2 comments
Open

Add resetOnFulfilled and resetOnRejected options #100

kellyselden opened this issue Sep 18, 2017 · 2 comments

Comments

@kellyselden
Copy link
Contributor

Instead of the blanket reset option, this would allow you to reset on validation errors, but not reset on a success.

Would you accept a PR of this?

@bcardarella
Copy link
Member

@kellyselden can't we determine this based upon the state of the promise?

@kellyselden
Copy link
Contributor Author

@bcardarella How would the button know that the consumer wanted to reset only on rejections and not on successes?

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

2 participants