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 useObjectState typing #282

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leonardobazico
Copy link

useObjectState accepts a partial object to update a property state, but the type definition was expecting the whole object to be updated.

@karolfalkiewicz-dss
Copy link

This is turbo annoying that this bug exist. Tried to use hook today, but left it for simple useState, just because this TS error.

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