usehooks
usehooks copied to clipboard
Fix useObjectState typing
useObjectState accepts a partial object to update a property state, but the type definition was expecting the whole object to be updated.
This is turbo annoying that this bug exist. Tried to use hook today, but left it for simple useState, just because this TS error.