Skip to content

Conversation

codingki
Copy link
Contributor

it's better to add strict type to set() to avoiding confusion for who uses it.
It will be weird if the set value filled with string or anything and Boolean() it out, its better outside of the hooks.

@grikomsn grikomsn self-assigned this Nov 19, 2021
@grikomsn grikomsn added the enhancement New feature or request label Nov 19, 2021
@grikomsn
Copy link
Member

Agreed, initially I thought it would be neat if you can pass any boolean-ish values. LGTM.

@grikomsn grikomsn changed the title fix: add boolean types to set() and state fix(hook): add boolean types to set() and state Nov 19, 2021
@grikomsn grikomsn merged commit 47050ba into kodingdotninja:main Nov 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants