xobotyi
8886f2b885
fix useAsync tests warnings;
2019-08-20 13:19:25 +03:00
xobotyi
61b0355e5c
useRefMounted deprecation;
2019-08-20 00:58:41 +03:00
xobotyi
0e9894d28e
Rework vol.2 =)
...
Added fetching indicator;
Fixed isMounted state;
Mock function returned for browsers not supporting the Battery API;
Using react-fast-compare to avoid useless updates;
2019-08-20 00:50:59 +03:00
Vadim Dalecky
a7c2899382
feat: add useUpsert
2019-08-19 18:22:02 +02:00
尽龙
99794e9b93
Merge remote-tracking branch 'origin/master' into feat/enhance_useDebounce
2019-08-20 00:18:14 +08:00
Vadim Dalecky
2f70dc261d
fix: return from useUpdateEffect
2019-08-19 17:58:58 +02:00
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