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

Fix useSetState callback parameter type #323

Merged
merged 1 commit into from
May 30, 2019
Merged

Conversation

srph
Copy link
Contributor

@srph srph commented May 29, 2019

I'm not a TS guru by any means, but I found it odd that the callback type 1.) didn't accept a prevState, nor return a partial of prevState.

Updating this type seems to fix the issue for me.

Copy link
Owner

@streamich streamich left a comment

Choose a reason for hiding this comment

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

Thanks!

@streamich streamich merged commit fad4440 into streamich:master May 30, 2019
@streamich
Copy link
Owner

🎉 This PR is included in version 9.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants