622 Commits

Author SHA1 Message Date
Vadim Dalecky
bd3a0622a1
fix: allow import default for ESM 2019-08-19 17:52:05 +02:00
xobotyi
310fb6dc55 Reworked useBattery hook;
Fix: #308;
2019-08-19 12:06:20 +03:00
尽龙
8b24df411b fix: useUpdateEffect add return 2019-08-19 15:14:38 +08:00
尽龙
693aec8307 feat: useDebounce add cancel 2019-08-19 14:18:40 +08:00
尽龙
26cab31f10 feat: useDebounce add cancel 2019-08-19 14:14:35 +08:00
尽龙
b3e672b66c fix: rollup build error: Cannot call a namespace ('writeText') 2019-08-19 11:07:58 +08:00
Vadim Dalecky
8224badfc5
Merge pull request #514 from brickspert/master
fix: useUpdateEffect run on the wrong time
2019-08-17 22:34:36 +02:00
Vadim Dalecky
66b175dbff
refactor: use useMountedState instead of useRefMounted 2019-08-17 18:26:15 +02:00
Vadim Dalecky
586faabe74
feat: add min/max to useNumber 2019-08-17 18:18:20 +02:00
koen
05beb6df23 Fix IE support for useMouse 2019-08-15 09:25:02 +02:00
xobotyi
58a816c4f8 Replaced all useRefMounted to useMountedState to deprecate first one in later releases; 2019-08-14 03:46:03 +03:00
xobotyi
12608fe5be Make useMountedState return a single function instead of a new one each time; 2019-08-14 03:33:11 +03:00
xobotyi
1628e57175 Implemented #273;
Added runtime type checks;
Tests for all that stuff;
Docs;
2019-08-14 02:49:53 +03:00
xobotyi
b72e98c765 Fixing the rafLoop tests due to it's sporadic fails; 2019-08-13 23:59:03 +03:00
砖家
1d5cd10fe4
fix: useUpdateEffect run on the wrong time 2019-08-12 23:39:59 +08:00
streamich
9b15235ce0 style: 💄 run Prettier 2019-08-06 09:43:58 +02:00
petterive
440b4bc6e1 refactor: 💡 avoid unneccessary iteration 2019-08-05 23:41:40 +02:00
petterive
915b25a45b docs: ✏️ add documentation 2019-08-05 23:19:28 +02:00
petterive
3eda2b2dd9 feat: 🎸 export useUpsert from index 2019-08-05 23:18:58 +02:00
petterive
8462a59e16 refactor: 💡 rename comparison function 2019-08-05 23:18:07 +02:00
petterive
6875e13d60 feat: 🎸 add useUpsert 2019-08-05 22:51:05 +02:00
Mario Beltrán Alarcón
cecd1adcfa Update @types/jest package and remove ts-ignore for getTimerCount 2019-08-05 22:23:11 +02:00
Mario Beltrán Alarcón
6b78160553 Add useTimeout tests 2019-08-05 21:46:09 +02:00
Mario Beltrán Alarcón
5bc14d1a30 Add useRaf tests 2019-08-04 23:44:34 +02:00
Mario Beltrán Alarcón
9e4de349af Add useUpdate tests 2019-08-04 19:19:52 +02:00
Mario Beltrán Alarcón
f45cd52c70 Remove ts-ignore flags from previous tests 2019-08-03 19:20:31 +02:00
streamich
9792175a72 chore: 🤖 fix master 2019-08-03 02:35:28 +02:00
Anton Zinovyev
da3628e201
Merge branch 'master' into master 2019-08-03 02:34:02 +03:00
xobotyi
ca00d64f61 Much shortened and simplified the index file by directly reexporting hooks; 2019-08-03 02:31:23 +03:00
xobotyi
2af0bc6797 Boolean returns check fixed; 2019-08-03 02:25:10 +03:00
streamich
9e82f1b1a4 chore: 🤖 fix master after late merge 2019-08-03 01:22:17 +02:00
xobotyi
b586707ce5 Useless null type; 2019-08-03 02:21:58 +03:00
xobotyi
14a60c97dc Decrease amount of required calls (machine could be busy); 2019-08-03 02:18:10 +03:00
xobotyi
2299646c57 No sense to pass deps due to we can observe the callback itself. 2019-08-03 02:13:12 +03:00
Vadim Dalecky
5e0ff869de
Merge branch 'master' into use-mounted-state 2019-08-03 01:03:21 +02:00
Vadim Dalecky
aecbd0bb70
fix: allow string list in useKeyboardJs hook 2019-08-03 00:33:18 +02:00
Mario Beltrán Alarcón
716a7d483d Add useSetState tests 2019-08-02 16:01:08 +02:00
Mario Beltrán Alarcón
281c288c04 Rename usePrevious tests file 2019-08-02 14:41:20 +02:00
Mario Beltrán Alarcón
4ae76748cd Update usePrevious tests 2019-08-02 14:38:06 +02:00
Mario Beltrán Alarcón
f058ff9739 Move useObservable tests to react-hooks-testing-library 2019-08-02 12:13:43 +02:00
dabuside
b7481f6cd5 fix(storybook): fix useKeyboardJs import path 2019-08-02 13:45:47 +08:00
dabuside
8c820ce063 fix(useKeyboardJs): fix argument type error 2019-08-02 12:19:20 +08:00
Mario Beltrán Alarcón
42b1097706 Merge branch 'forked-master'
# Conflicts:
#	package.json
#	yarn.lock
2019-08-02 01:34:41 +02:00
Mario Beltrán Alarcón
ebfba06f12 Update useObservable tests 2019-08-02 01:32:24 +02:00
Mario Beltrán Alarcón
d143859fc9 Add useMap tests 2019-08-01 23:39:23 +02:00
xobotyi
ea04eb09ae Much shortened and simplified the index file by directly reexporting hooks; 2019-07-31 13:48:47 +03:00
Mario Beltrán Alarcón
93e76dc48f Add useList additional test 2019-07-31 00:15:19 +02:00
Mario Beltrán Alarcón
85f5d26158 Add useList tests 2019-07-31 00:13:28 +02:00
xobotyi
5350e8d9ee useMountedState as a replacement for useRefMounted:
- it has more obvious name;
 - returns a function that check mount state -> more handy ti use due to less to write;
 - has tests;
2019-07-31 00:05:12 +03:00
Mario Beltrán Alarcón
962f580d19 Add createReducer tests 2019-07-30 22:49:43 +02:00