Jakkapat Boonroj
8cdcfddae4
✨ create useBreakpoint
2019-10-22 22:35:25 +07:00
Anton Zinovyev
097fbf2c8e
Merge branch 'master' into useMediatedState
2019-10-17 16:38:04 +03:00
Anton Zinovyev
827732dea4
Merge pull request #683 from streamich/useMultiStateValidator
...
feat: useMultiStateValidator
2019-10-17 16:37:17 +03:00
xobotyi
056875ba53
fix: error throw tests;
...
fix: better throw already `new Error`;
2019-10-17 10:47:44 +03:00
Ward
00816a4ed0
feat: useRafState ( #684 )
2019-10-16 23:05:50 +11:00
xobotyi
652b318905
fix: rename story's mediator and add g flag to it's regex;
...
fix: typo in readme;
2019-10-16 14:46:15 +03:00
xobotyi
ae2698891b
feat: useMultiStateValidator
2019-10-16 14:23:54 +03:00
xobotyi
cb4a735b84
useMediatedState implementation, tests and docs;
2019-10-14 20:30:07 +03:00
Ward
a624364d8b
feat: useList allow pushing multiple items ( #621 )
2019-10-14 07:38:04 +11:00
Ward
a38f026beb
refactor: useInterval refactor + docs ( #626 )
2019-10-13 17:54:30 +11:00
Jose Felix
6afa6b4793
tests: useDeepCompareEffect and useUpdateEffect tests ( #663 )
2019-10-13 11:13:43 +11:00
Ward Oosterlijnck
282f04b6f6
docs: useMeasure and useSize docs tidy
2019-10-12 21:03:35 +11:00
Kevin Norris
d5f359f7e3
feat: useIntersection ( #652 )
...
React sensor hook that tracks the changes in the intersection of a target element with an ancestor element or with a top-level document's viewport, using the Intersection Observer API
2019-10-12 19:22:23 +11:00
Kevin Norris
87d461319a
tests: useLogger ( #670 )
2019-10-12 19:12:51 +11:00
Ward Oosterlijnck
8fcf8d4dd7
docs: fix useStateValidator story
2019-10-12 18:41:54 +11:00
Ward
ed8e26d7c2
fix: improve use of refs in dependency lists ( #655 )
2019-10-12 18:27:31 +11:00
Anton Zinovyev
9ab8698fd2
Merge branch 'master' into feat-useValidatableState
2019-10-11 04:29:34 +03:00
xobotyi
b998f3d397
useValidatableState -> useStateValidator;
...
It is more suitable due to more flexible usage;
2019-10-11 03:59:06 +03:00
Kevin Norris
d1aaa855fc
tests: useFavicon ( #666 )
2019-10-10 21:29:01 +11:00
Ward
9ea3548e4c
feat: reset util callback for useList ( #654 )
2019-10-08 08:30:21 +11:00
Arty
4f48494126
docs: useList demo link + improve docs ( #649 )
...
* improve docs: useList demo link
* improve docs: useList demo link (examples of callbacks usage)
* Add all callback methods to useList story
2019-10-07 16:04:09 +11:00
Arty
c520797fd5
docs: useMap demo link + improved docs ( #650 )
...
* improve docs: useMap demo link
* improve docs: useMap demo link (remove callback usage added)
* Add remove action to useMap story
2019-10-07 16:02:45 +11:00
Jake Boone
ae6510550e
chore(deps): update screenfull to v5.0.0 ( #645 )
2019-10-06 13:05:50 +11:00
Ward
23d6a5af78
fix: useDebounce remove deps from function arguments ( #623 )
2019-09-26 10:14:31 +02:00
Yingya Zhang
adce59ec32
fix: remove attempt from deps of retry in useAsyncRetry ( #614 )
2019-09-23 19:07:51 +02:00
Brendan Daoud
9e48050de4
Test for 'set' callback also
2019-09-05 15:36:35 +02:00
Brendan Daoud
d1f3afbabd
Memoized utils methods for useMap
2019-09-05 15:13:15 +02:00
ltm
d02734e354
test:add test for useThrottle and useThrottleFn ( #585 )
...
* test(useThrottleFn):add test for `useThrottleFn`
* test(useThrottle):add test for `useThrottle`
* chore(deps): update dependency rxjs to v6.5.3
* test(useThrottle):update the `useThrottle.test.ts` according to the requested changes.
* split single test into differents ones
* clear all timers after each tests
* reset timers to real ones on afterAll
* test:update the tests for `useThrottle` and `useThrottleFn`
* same changes as `useThrottle.test.ts` on `useThrottleFn.test.ts`
* remove some assertion on `useThrottle.test.ts`
2019-09-04 15:43:22 +02:00
xobotyi
9543e23ca3
useValidatableState implementation;
2019-09-04 04:10:11 +03:00
Ward
60a49372e7
feat: improve useWindowSize performance rAF
2019-09-02 22:06:53 +10:00
Vadim Dalecky
b96f097653
Merge pull request #573 from lintuming/master
...
feat: add useMeasure
2019-09-01 23:22:39 +02:00
Vadim Dalecky
3f08740038
Merge pull request #583 from streamich/useSearchParam
...
useSearchParam
2019-09-01 23:19:09 +02:00
Vadim Dalecky
ff900d5545
feat: store "paused" instead of "isPlaying" in media state
...
BREAKING CHANGE: now media players return "paused" instead of "isPlaying" in their state.
2019-09-01 23:12:26 +02:00
streamich
64ac924edf
feat: 🎸 support server-side rendering in useSearchParam() hook
2019-09-01 23:07:43 +02:00
streamich
481e807e39
test: 💍 add useSearchParam tests
2019-09-01 23:04:51 +02:00
streamich
b7ad911c04
docs: ✏️ add useSearchParam() docs
2019-09-01 22:25:30 +02:00
streamich
b22f32f6f6
feat: 🎸 add useSearchParam() hook
2019-09-01 22:21:14 +02:00
realdennis
ef1dc1bf76
Test. add testing for useAudio
2019-08-30 23:21:24 +08:00
Mario Beltrán
af7e61b5cf
Fix useUpdate returned callback ( #570 )
2019-08-30 11:00:29 +02:00
Mario Beltrán
4c1bb95651
First bunch of tests for lifecycle hooks blocks ( #574 )
...
* Add tests for useMount hook
* Add tests for useUnmount hook
* Add tests for useEffectOnce hook
2019-08-30 10:58:25 +02:00
realdennis
4dde514de8
Using paused property instead of isPlaying
2019-08-30 13:21:00 +08:00
lintuming
f1d51fcff6
delete test file
2019-08-28 10:32:35 +08:00
lintuming
611a4263f6
fix doc typo
2019-08-28 10:20:40 +08:00
lintuming
4deb48b35e
add useMeasure story
2019-08-28 09:28:28 +08:00
Anton Zinovyev
d5ca05e231
Merge pull request #568 from streamich/imp-useTimeout
...
fix: make useTimeoutFn work properly:
2019-08-27 01:07:39 +03:00
xobotyi
a6c2d65a35
fix typo;
2019-08-27 00:01:46 +03:00
Mario Beltrán Alarcón
4cbe1a787e
Add tests for useInterval hook
2019-08-26 21:47:53 +02:00
xobotyi
438a56606b
make useTimeoutFn work properly:
...
- reset function should clear previous timeout;
- function change should not reset the timeout;
2019-08-26 09:58:28 +03:00
xobotyi
e2cdb94c9b
fix: useThrottle & useThrottleFn proper timeout type;
2019-08-26 00:33:22 +03:00
Paul Sachs
6c3e569db6
feat: add usePreviousDistinct ( #551 )
...
* feat: add usePreviousDistinct
* Cleanup
* Added storybook docs
* improve demo in docs
2019-08-25 21:20:44 +02:00