8 Commits

Author SHA1 Message Date
Ward Oosterlijnck
3f5e5c9222 useToggle no param casting, closes #278 2019-05-08 19:30:59 +10:00
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
Benjamin Makus
454012387b useToggle rerender optimization 2019-02-02 13:40:04 +01:00
Va Da
d854d27208
fix: use function to correctly update state in useToggle 2019-01-04 21:30:39 +01:00
streamich
cdc5ec596d refactor: 💡 use import hooks from React proper 2018-12-16 11:02:52 +01:00
streamich
869f767c9a feat: 🎸 accept any value type in useToggle and cast it to bool
BREAKING CHANGE: now useToggle and useBoolean accept any value type and cast it to
boolean.
2018-10-29 15:33:05 +01:00
Pavel Ivanoff
5a6da18e8a feat: 🎸 change API for useToggle hook (#16)
It's better option to decrease useToggle params destruction and keep flexibility

BREAKING CHANGE: useToggle interface changed
2018-10-28 22:24:48 +01:00
streamich
a36dcebdc7 feat: 🎸 add useToggle() hook 2018-10-27 00:46:28 +02:00