Vadim Dalecky
4aa573dfeb
Merge branch 'master' into feature/correct-spelling
2020-05-16 15:58:12 +02:00
streamich
87fbe1534c
chore: 🤖 add latest useMeasure hook changes ( #1213 )
2020-05-16 15:03:42 +02:00
streamich
e1dbd39f18
chore: 🤖 catch up with master
2020-05-16 14:59:21 +02:00
streamich
dc92b646d0
fix: 🐛 revert useMeasure defaults to zeros
2020-05-16 14:53:10 +02:00
streamich
d06688b26e
style: 💄 remove unused constructors
2020-05-16 14:49:13 +02:00
streamich
2a13fbae45
feat: 🎸 remove resize-observer-polyfill from useMeasure
...
BREAKING CHANGE: resize-observer-polyfill package is not used with useMeasure() hook
anymore.
2020-05-16 14:46:41 +02:00
whincwu
44a6cde00e
feat: add useHash hook
2020-04-08 09:21:06 +03:00
xobotyi
baa2f7511e
feat(useRafLoop): reworked the hook, now it do not re-render parent component.
...
BREAKING CHANGE: changed return array, now it returns only functions in next order: [stop, start, isActive].
Parent component is not re-rendered on loop start/stop.
2020-04-01 10:43:31 +03:00
xobotyi
1ef1272d6d
feat(useRafLoop): implement #1090
2020-04-01 08:49:05 +03:00
Mike Rogers
e4eec7bf63
correcting spelling mistakes
2020-03-05 11:36:43 +00:00
Octave Raimbault
477614f9ef
feat(useSet): add toggle a method ( #968 )
...
Co-authored-by: Ward <wardoosterlijnck@gmail.com>
2020-03-03 14:00:40 +11:00
streamich
3ca5251c2e
chore: 🤖 catch up with master
2020-02-17 22:40:41 +01:00
Vadim Dalecky
a2c26a2b68
Merge pull request #910 from ayush987goyal/pr/use-methods
...
feat: add useMethods state hook
2020-02-15 15:25:05 +01:00
Ayush Goyal
7554b9a61e
feat: add useMethods state hook
2020-02-15 19:24:48 +05:30
streamich
e357c1fdd9
chore: 🤖 catch up with master
2020-02-15 12:22:06 +01:00
streamich
ef67d28654
refactor: 💡 use fast-deep-equal for deep comparisons
2020-02-15 12:02:57 +01:00
streamich
3c5f1fb1f1
style: 💄 disable ESLint in couple of files
2020-02-15 11:21:10 +01:00
streamich
c75a0a6ef3
chore: 🤖 catch up with master
2020-02-15 11:20:01 +01:00
Ayush Goyal
67d65833d9
chore: disable eslint for affected files
2020-02-04 07:12:19 +05:30
streamich
6ddc6332f8
chore: 🤖 catch up with master
2020-02-04 01:36:30 +01:00
streamich
7c93cd1236
chore: 🤖 catch up with master
2020-02-04 01:27:02 +01:00
Vadim Dalecky
fda7199b7d
feat: add createGlobalState hook generator
2020-02-03 16:20:07 -08:00
Vadim Dalecky
54ac91b28d
feat: keep previous state in useAsyncFn
...
BREAKING CHANGE: useAsyncFn now keeps hold of old result/error when called multiple times
2020-02-03 16:12:50 -08:00
streamich
68fb835ea6
fix: 🐛 better serialization handling in useLocalStorage hook
2020-02-04 00:38:56 +01:00
streamich
be69035caf
feat: 🎸 catch up with v14
2020-02-03 23:35:28 +01:00
streamich
2e91e5396e
chore: 🤖 catch up with master
2020-02-03 23:09:33 +01:00
Tyler Swavely
e5f41678f8
remove unused file
2020-02-02 21:26:06 -08:00
Tyler Swavely
8d18ef949f
linting
2020-02-02 21:23:27 -08:00
Tyler Swavely
becdfff194
add serializer options back to useLocalStorage
2020-02-02 21:21:34 -08:00
Tyler Swavely
812d31afff
Merge remote-tracking branch 'upstream/master' into fix-useLocalStorage
2020-02-01 16:42:25 -08:00
carlos
062e60663d
Resolve #934 : useAsyncFn: keeping the previous state when start running the async function
2020-01-30 18:03:54 +08:00
dizel3d
4f6d3887be
fix(useIntersection): return null if IntersectionObserver is not supported
2020-01-28 00:26:08 +03:00
dizel3d
3f8687e1f5
fix(useIntersection): reset an intersectionObserverEntry when the ref changes
2020-01-28 00:25:57 +03:00
dizel3d
ac2f54a8f6
fix(useIntersection): disconnect an old IntersectionObserver instance when the ref changes
2020-01-27 23:57:36 +03:00
Kuss
a0d61b5ea1
optional parameter and update test
2020-01-24 17:27:58 +08:00
Kuss
45681b88e3
feat: add useLongPress hook
2020-01-23 13:03:45 +08:00
Mateusz Leonowicz
dc07e0e3b9
add setAll instead of overloading reset
2020-01-17 15:56:37 +00:00
Vadim Dalecky
5d4785750d
Merge pull request #899 from cleverjam/useCopyToClipboard-tests
...
refactor: use copy to clipboard
2020-01-17 00:31:04 -08:00
streamich
973a11fdb5
chore: 🤖 catch up with master
2020-01-17 09:24:06 +01:00
Jaime Liz
f17c8a0f8e
fix: remove console log 🤓
2020-01-16 19:43:35 -06:00
Jaime Liz
aaefdf8535
test: update test to include empty string as invalid
2020-01-16 19:41:43 -06:00
Jaime Liz
d219ffa1ec
test: add dev logging test case and reset mocks
2020-01-16 19:17:50 -06:00
Jaime Liz
6d5624eee2
test: update case wording
2020-01-16 19:07:04 -06:00
Jaime Liz
b13667b55c
test: add more test cases
2020-01-16 18:55:50 -06:00
Ayush Goyal
65f3644205
feat: add useError hook
2020-01-16 21:13:35 +05:30
Jaime Liz
61dcb1f1e2
test: add use copy to clipboard test
2020-01-15 20:31:10 -06:00
Ayush Goyal
5316510bab
feat: add serializer/deserializer option to useLocalStorage
2020-01-15 23:14:17 +05:30
Vadim Dalecky
b8b3e479ce
feat: add option to useTitle to restore title on un-mount
2020-01-14 07:28:45 -08:00
zsh2401
8faa71f9ac
useTitle could restore title optionally
2020-01-14 14:47:58 +08:00
Brendan Daoud
6d61c1d95a
Merge branch 'master' into pr/useStateContext
2020-01-13 18:08:09 +01:00