4 Commits

Author SHA1 Message Date
streamich
f5faba515d fix: 🐛 don't throw only in development
Throwing changes behaviour of the code, other code may rely on this
behaviour, so we either throw in all environments or console.error
instead.

BREAKING CHANGE: 🧨 error is logged instead of thrown in development environment
2019-03-26 11:20:42 +01:00
streamich
cdc5ec596d refactor: 💡 use import hooks from React proper 2018-12-16 11:02:52 +01:00
streamich
3c1e57d60e perf: ️ wrape useGetSetState callbacks in useCallback 2018-10-29 17:46:28 +01:00
streamich
dcd1013736 feat: 🎸 add useGetSetState 2018-10-29 17:41:34 +01:00