Mario Beltrán Alarcón
86355db002
Merge branch 'original-master' into animation-block-tests
...
# Conflicts:
# package.json
# yarn.lock
2019-08-21 23:42:10 +02:00
Mario Beltrán Alarcón
3c43c4b05d
Add useSpring tests
2019-08-21 23:36:50 +02:00
Vadim Dalecky
09167df364
fix: succeed useRafLoop tests
2019-08-20 23:43:13 +02:00
streamich
6e5cfaccef
chore: 🤖 fix master build
2019-08-20 23:37:42 +02:00
xobotyi
be950bbc41
Fix useRafLoop tests. Now it always succeed.
2019-08-21 00:31:18 +03:00
Vadim Dalecky
106906013f
fix: Reworked useBattery hook
2019-08-20 23:25:05 +02:00
xobotyi
ed5f277b0b
Simpler navigator detection (still SSR compatible);
2019-08-20 23:44:11 +03:00
Vadim Dalecky
aae806deb9
Mark useRefMounted as deprecated ( #539 )
...
Mark useRefMounted as deprecated
2019-08-20 22:35:27 +02:00
streamich
2d0fabf9ac
feat: 🎸 use only one useState and one useEffect call
2019-08-20 20:17:55 +02:00
streamich
5d31cf0dbc
feat: 🎸 support useBattery hook on server side
2019-08-20 19:40:22 +02:00
xobotyi
4a7fe73405
fix useAsyncFn tests warnings;
2019-08-20 13:33:42 +03:00
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
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
尽龙
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