55 Commits

Author SHA1 Message Date
Alexander Kachkaev
d2028ae44c
Run "yarn lint --fix" 2021-08-31 22:22:38 +01:00
gelove
99208ffced refactor: (useSpeech,usePermission) improved types 2021-08-11 11:28:21 +08:00
xobotyi
b6993a6f95
feat(prettier): make prettier a part of eslint.
Also reduce max line width to 100. And remove `lint:types` step for
commit sequence, it bothers when committing incomplete (wip) changes.
2021-02-01 18:58:55 +03:00
xobotyi
23037f207d
feat: refactor the useNetwork hook.
Improved hook performance, now works with safari.

BREAKING CHANGE: `useNetwork` hook renamed to `useNetworkState`.
2021-01-31 03:14:20 +03:00
Renovate Bot
a27f09fd36
chore: refactoring and rearrangement.
More DRY code. Also move non-hooks to separate directories.

BREAKING CHANGE: all `create*` factories been moved to `factory` subdirectory and in case direct import should be imported like `react-use/esm/factory/createBreakpoint`
BREAKING CHANGE: `comps` directory renamed to `component`
2021-01-30 23:30:26 +03:00
Odd Eirik Nes
d84729a85a Fix storybook separators in stories 2020-09-18 15:09:32 +02:00
Manish Kumar Sundriyal
a1b8f08ae7
docs: useKeyPressEvent is decrementing ('[') twice (#1132) 2020-06-13 14:39:08 +02:00
streamich
b2f46d10f2 fix: 🐛 improve how text is dropped in useDrop hook 2020-06-13 13:42:36 +02:00
tkwant
d714b12e8b feat: add useMouseWheel hook 2020-06-05 22:50:34 +02:00
streamich
e33cf9f87b chore: 🤖 catch up with master 2020-05-18 16:03:20 +02:00
streamich
e1dbd39f18 chore: 🤖 catch up with master 2020-05-16 14:59:21 +02:00
streamich
1e74bdcf48 docs: ✏️ add useScratch to docs 2020-05-16 14:29:24 +02:00
streamich
5f5dd09bf3 test: 💍 add useScratch() stories 2020-05-16 14:27:33 +02:00
Clément Paris
2bb65ef3d8 fix: display alert timeout in story 2020-05-13 19:07:33 +02:00
Clément Paris
d6fe267615 feat: add useLatest hook 2020-05-10 18:09:30 +02:00
streamich
138b43cd1a feat: 🎸 onScrubStop provide value where scrub stopped 2020-04-24 18:36:32 +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
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
f60ed427a3 chore: 🤖 catch up with master 2020-02-15 14:50:44 +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
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
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
streamich
2e91e5396e chore: 🤖 catch up with master 2020-02-03 23:09:33 +01:00
Vadim Dalecky
90eca90acb
docs: fix link to useError.md 2020-01-28 06:18:34 -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
D[oa]vid Weisz
e655a339fc
Fixed link to useError.md 2020-01-21 12:43:49 -05:00
streamich
973a11fdb5 chore: 🤖 catch up with master 2020-01-17 09:24:06 +01:00
Ayush Goyal
65f3644205 feat: add useError hook 2020-01-16 21:13:35 +05:30
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
7285f7dc7a Add createStateContext 2020-01-13 13:09:29 +01:00
MrHuangJser
41cbb8a6f5 add createGlobalState to story 2020-01-13 09:43:35 +08:00
streamich
72658e42e9 chore: 🤖 catch-up with master 2020-01-12 18:27:51 +01:00
streamich
9e651b8908 docs: ✏️ add useScratch to docs 2020-01-12 18:21:43 +01:00
streamich
4ca2d9b29e test: 💍 add useScratch() stories 2020-01-12 18:17:56 +01:00
Ayush Goyal
bc72bc13e7 Add useCookie hook 2020-01-12 02:00:24 +05:30
Stefan
c4a14a4fb3 feat(useBeforeUnload): allow passing a dirty function (#842) 2020-01-08 13:43:01 +01:00
Vadim Dalecky
8a6ece10da
Merge pull request #835 from suyingtao/master
feat(useLocalStorage): add remove method. (#229)
2020-01-05 00:53:00 -08: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
4633aebbb4 test: 💍 fix useSlider() story 2020-01-03 19:42:15 +01:00