791 Commits

Author SHA1 Message Date
Vadim Dalecky
7d932438a9
Merge pull request #704 from oriohol95/useEnsuredForwardedRef_hook
feat: useEnsuredForwardedRef
2019-10-25 18:12:44 +02:00
Oriol Colomer Aragonés
1bfe063664 feat: add ensuredForwardRef and useEnsuredForwardedRef 2019-10-25 16:32:39 +02:00
Marcel
0c20fb98fa change dispatchRef to mutableRefObject 2019-10-24 07:06:54 +02:00
Marcel Tinner
2b30566ad3
add typings for createReducer 2019-10-23 15:13:22 +02:00
streamich
711b48cfd1 docs: ✏️ use alert() in useMount() and useUnmount() stories 2019-10-23 10:23:26 +02:00
Jakkapat Boonroj
13ac976b0d change word 2019-10-23 10:33:36 +07:00
Jakkapat Boonroj
fa08f93004 rename to createBreakpoint 2019-10-23 10:15:38 +07:00
Jakkapat Boonroj
20bdd50788 add useMemo 2019-10-23 10:13:25 +07:00
Jakkapat Boonroj
9c779b256b rename variable 2019-10-23 10:11:29 +07:00
Jakkapat Boonroj
8cdcfddae4 create useBreakpoint 2019-10-22 22:35:25 +07:00
Behnam Mohammadi
9099f98f57 Added ActionsTabStory for log 2019-10-21 21:21:34 +03:30
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 Oosterlijnck
2d97cdfada More fun story 2019-10-17 00:28:30 +11:00
Ward Oosterlijnck
395e50a237 Merge branch 'master' into useSlider 2019-10-17 00:17:43 +11:00
Ward Oosterlijnck
e657c2f8f6 handle resize 2019-10-17 00:08:28 +11: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
Ward Oosterlijnck
c0843555ef useSlider docs 2019-10-15 18:29:03 +11:00
Ward Oosterlijnck
da8a853ba3 useSlider options 2019-10-15 08:57:57 +11:00
xobotyi
cb4a735b84 useMediatedState implementation, tests and docs; 2019-10-14 20:30:07 +03:00
Ward Oosterlijnck
c0ceb14e08 useSlider 2019-10-14 22:58:12 +11:00
Ward
a624364d8b
feat: useList allow pushing multiple items (#621) 2019-10-14 07:38:04 +11:00
Ward Oosterlijnck
9df69c6e00 useVibrate 2019-10-13 22:26:21 +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
qianL93
da0e66bb89
fix: useSize avoid crash in Safari 11 2019-10-10 14:14:54 +08: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
Sergei Droganov
15e9bd2bd5 rename pop ro remove 2019-09-22 15:10:27 +03:00
Sergei Droganov
a8b41f5e65 useQueue hook 2019-09-18 15:47:23 +03:00
macinjoke
0fb314863e improve useEvent type inference 2019-09-06 23:14:34 +09:00
macinjoke
fd8905a25e add useEvent test 2019-09-06 23:14:12 +09: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