404 Commits

Author SHA1 Message Date
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
streamich
9b15235ce0 style: 💄 run Prettier 2019-08-06 09:43:58 +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
xobotyi
6d55666aa7 useRafLoop - React hook that calls given function inside the RAF loop. 2019-07-30 23:14:08 +03:00
Mario Beltrán Alarcón
259e517e37 Update useDefault tests to new architecture 2019-07-30 20:56:57 +02:00
Mario Beltrán Alarcón
85fc3b2701 Fix tests after RTL scoped package update 2019-07-30 20:22:04 +02:00
Mario Beltrán Alarcón
894b17420d Merge branch 'forked-master'
# Conflicts:
#	package.json
2019-07-30 20:19:36 +02:00
Vadim Dalecky
ade0557de7
feat: add useDefault hook 2019-07-26 22:09:56 +02:00
leonardohabitzreuter
4e469c3ac6 useDefault hook 2019-07-22 15:36:34 -03:00
jeemyeong
5987cc82cc feat: useWindowScroll - for cross-browser compatibility
For cross-browser compatibility, use window.pageYOffset instead of window.scrollY.
(https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY)
2019-07-22 20:44:55 +09:00
Mario Beltrán Alarcón
98581e9e88 Improve createMemo tests 2019-07-22 01:40:19 +02:00
Mario Beltrán Alarcón
8ccc365dc1 Add createMemo tests 2019-07-22 01:23:18 +02:00
Mario Beltrán Alarcón
89f0b82f74 Add useGetSetState additional test 2019-07-22 00:22:59 +02:00
Mario Beltrán Alarcón
7d080bac67 Add useGetSetState tests 2019-07-22 00:17:25 +02:00
Mario Beltrán Alarcón
1b2509a44b Add useGetSet tests 2019-07-21 21:48:31 +02:00
Mario Beltrán Alarcón
de62e1aa8d Add useCounter tests 2019-07-21 21:04:24 +02:00
Vinícius Tabille Manjabosco
9e9745160d fix: useMouse & useMouseHovered type definitions for SVG 2019-07-21 20:37:54 +02:00
Mario Beltrán Alarcón
988e0894e2 Add useNumber tests 2019-07-21 20:15:03 +02:00
Mario Beltrán Alarcón
7b2f877dd3 Wrap tests in describe block 2019-07-21 19:55:29 +02:00
Mario Beltrán Alarcón
e958a061ac Merge upstream/master into master 2019-07-17 20:37:57 +02:00
Mario Beltrán Alarcón
f2d105737b Add useBoolean tests 2019-07-17 20:07:16 +02:00