657 Commits

Author SHA1 Message Date
Steven Lundy
46e01e09dc
Fix error message typo 2020-04-01 14:11:28 -07: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
Jason More
0ed6521179 fix: useHoverDirty eslint fix 2020-02-29 04:35:23 +03: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
b394f3d723 fix: add initialState to deps 2020-02-15 19:27:26 +05:30
Ayush Goyal
7554b9a61e feat: add useMethods state hook 2020-02-15 19:24:48 +05:30
streamich
24281cdf04 fix: 🐛 support default event in useClickAway() 2020-02-15 14:14:24 +01:00
streamich
d0830b62e1 Merge remote-tracking branch 'origin/master' into pr/857 2020-02-15 14:13:19 +01:00
Vadim Dalecky
5ea486edf1
Merge pull request #867 from bebbi/feat/before-unload-callback
feat(useBeforeUnload): allow passing a dirty function (#842)
2020-02-15 14:10:30 +01:00
streamich
4859d4ec1c refactor: 💡 use React version for deep comparisons 2020-02-15 12:06:35 +01:00
streamich
ef67d28654 refactor: 💡 use fast-deep-equal for deep comparisons 2020-02-15 12:02:57 +01:00
Ayush Goyal
67d65833d9 chore: disable eslint for affected files 2020-02-04 07:12:19 +05:30
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
70fc33fce4
Merge pull request #830 from OBe95/fix/handle-undefined-mediaDevices
fix: handle undefined mediaDevices
2020-02-03 16:10:50 -08:00
streamich
0f119fe23e fix: 🐛 don't throw in useMediaDevices on missing browser API 2020-02-04 01:05:13 +01: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
57b904118e fix: Fail testing and update doc 2020-01-24 19:04:39 +08: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
Alexey Bojhev
83f4c466b0
Typings for useDefault
Added generic type for `useDefault` state
2020-01-18 21:20:05 +03:00
Mateusz Leonowicz
dc07e0e3b9 add setAll instead of overloading reset 2020-01-17 15:56:37 +00:00
Mateusz Leonowicz
7645f7249d feat: useMap: allow resetting with provided value other then initial 2020-01-17 15:03:35 +00:00
Ayush Goyal
65f3644205 feat: add useError hook 2020-01-16 21:13:35 +05:30
Ayush Goyal
d619c39a21 fix: check for null 2020-01-16 08:17:56 +05:30
Ayush Goyal
5316510bab feat: add serializer/deserializer option to useLocalStorage 2020-01-15 23:14:17 +05:30
Vadim Dalecky
d7784084fe
feat: add support for body lock on iOS 2020-01-15 03:13:11 -08:00
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
Brendan
bc74530f35 Add create reducer context 2020-01-13 14:01:21 +01:00
Brendan
e34ee0e66c Allow initial value override 2020-01-13 13:32:24 +01:00
Brendan
7285f7dc7a Add createStateContext 2020-01-13 13:09:29 +01:00
MrHuangJser
ebc7b5b0f5 rename useGlobalState to createGlobalState 2020-01-13 09:42:56 +08:00
Ayush Goyal
bc72bc13e7 Add useCookie hook 2020-01-12 02:00:24 +05:30
andrico
9f54379f33 remove ontouchstart event handler 2020-01-10 08:20:52 +00:00
andrico
c44bed806a prelimnary ios lock fixes 2020-01-10 08:11:22 +00:00
Stefan
c4a14a4fb3 feat(useBeforeUnload): allow passing a dirty function (#842) 2020-01-08 13:43:01 +01:00
Arnaud de Surirey
0ce421ced7
fix: useUpdateEffect returns optional cleanup function 2020-01-07 19:08:38 +01:00
streamich
777865c3ac feat: 🎸 add [vertical] flag to useSlider() hook 2020-01-03 19:53:12 +01:00
streamich
1980d46199 refactor: 💡 don't use useMeassure in useSlider hook 2020-01-03 19:46:16 +01:00
streamich
1e379e4966 chore: 🤖 catch up with master 2020-01-03 19:38:07 +01:00
Filipe Froes
4ffe4542ae fix: generic type on event arg in onClickAway callback on useClickAway 2020-01-03 18:34:31 +02:00
streamich
d2c74f2763 chore: 🤖 resolve conflicts 2019-12-27 12:36:05 +01:00
streamich
8662dd0615 chore: 🤖 add new hooks to README, and minor tweaks to warnings 2019-12-27 12:33:08 +01:00
Anton Dosov
4f35605423 add useShallowCompareEffect and useCustomCompareEffect 2019-12-27 14:31:52 +03:00
Anton Dosov
e1f4252a1a improve shallow compare. test for array wil multiple deps 2019-12-27 13:53:14 +03:00
Anton Dosov
c4911e6d70 add use-shallow-compare-effect and use-custom-compare-effect 2019-12-27 13:04:39 +03:00