387 Commits

Author SHA1 Message Date
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
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
Mario Beltrán Alarcón
8c25b50cc1 Update react hooks testing library dependency and installing peer dependencies 2019-07-17 20:03:48 +02:00
Mario Beltrán Alarcón
0b4d1d6b5b Simplify useToggle test file 2019-07-17 19:30:49 +02:00
Vadim Dalecky
6ebe3bba85
feat: add latest react-wait types 2019-07-17 17:28:56 +02:00
Spencer Elliott
38622ec5a6 Export useWait and Waiter 2019-07-17 10:41:20 -04:00
Daniel K
17dd1f141a Remove peer deps 2019-07-17 08:27:21 +02:00
Vadim Dalecky
6645ed940a
feat: add useInterval hook 2019-07-17 00:58:00 +02:00
Mario Beltrán Alarcón
ebb25517a2 Update useToggle tests 2019-07-17 00:34:31 +02:00
streamich
40b33dabed fix: 🐛 fix useDebounce import 2019-07-17 00:21:06 +02:00
streamich
599efdb6b6 chore: 🤖 add component useInterval to README, improve demo 2019-07-17 00:19:50 +02:00
Ward Oosterlijnck
9ea027539e docs: async hooks docs and stories update 2019-07-17 01:41:00 +10:00
Vadim Dalecky
50a5160081
fix: support useMedia usage server-side 2019-07-16 12:09:46 +02:00
Ward Oosterlijnck
f1c0987f87 Example with dependency with a delay value slider 2019-07-16 19:47:50 +10:00
Ward Oosterlijnck
a57fb0325e Isomorphic useMedia 2019-07-16 19:07:39 +10:00
Andrew Bazhanov
9780545d6e fix: createReducer stable dispatch function identity
stable dispatch function identity so it won’t change on re-renders
2019-07-16 18:40:08 +10:00
Matt Leonowicz
eeb55e4927
useMedia - initialize state with call to media query
Initializing state with result from call to window.matchMedia avoids possible initial flicker of returned value, when media query matched initially
2019-07-11 15:19:17 +02:00
yangyi
fd7cda62e1
Merge branch 'master' into master 2019-07-11 16:36:03 +08:00
liyangyi
342150bfe6 useDebounce should not trigger the callback function at the first invocation(e.g on mount) 2019-07-11 16:31:45 +08:00