-
Notifications
You must be signed in to change notification settings - Fork 130
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
Return a promise from setState #41
Comments
I think we might just remove the callback from |
agreed. if |
@anthonyshort did you consider to make I think your project is comparatively free to fix this design issue. |
@ivan-kleshnin We're definitely more free to make changes like this. In general I don't like the hooks, and I've found we rarely use them anyway. The only one I can see being useful would be something like I'm not sure I'm following the exact reasoning behind it yet though. What are the benefits to it? We don't access state on |
This shouldn't be too hard. Just return a promise and resolve it on an event.
The text was updated successfully, but these errors were encountered: