xobotyi
26baf47bac
fix(useLockBodyScroll): infer overflow type directly from declaration.
2019-11-02 01:24:06 +03:00
Vadim Dalecky
8d40f1800d
Merge pull request #711 from streamich/remove-react-wait
...
BREAKING CHANGE: useWait hook has been removed from react-use
2019-11-01 22:30:04 +01:00
xobotyi
d7c38bd77f
feat(useWait): removed from package due to it is simple reexport of other package;
2019-11-01 00:20:25 +03:00
xobotyi
dc364c851c
feat(useRefMounted): remove obsolete hook;
2019-11-01 00:13:57 +03:00
Vadim Dalecky
b8b49b3a60
Merge pull request #723 from streamich/resolveHookState-implementation
...
feat: react-like state resolver
2019-10-31 22:01:35 +01:00
Vadim Dalecky
f1cf036351
feat: add typings for createReducer
2019-10-31 20:58:39 +01:00
Anton Zinovyev
6807452014
Merge pull request #720 from streamich/useWait-deprecation
...
feat(useWait): add deprecation messages to readme and export;
2019-10-31 11:13:27 +03:00
xobotyi
befcf84c2c
feat(useCounter): reworked with use of new resolveHookState function plus improved memory usage;
...
feat(resolveHookState): improved types;
2019-10-31 04:48:30 +03:00
xobotyi
9b5d0f2ad1
feat(useGetSet): reworked with use of new resolveHookState function plus improved memory usage;
2019-10-31 02:58:48 +03:00
xobotyi
9fd02eb821
feat: react-like state resolver to use it in stateful hooks;
2019-10-31 02:56:41 +03:00
xobotyi
0f02fd093a
feat(useUpdate): improve memory usage - now single function instance to increment all counters;
2019-10-30 15:36:02 +03:00
xobotyi
d33824578c
feat(useWait): add deprecation messages to readme and export;
2019-10-30 10:00:20 +03:00
Vadim Dalecky
c23e105bcb
Merge pull request #665 from qianL93/patch-1
...
fix: useSize avoid crash in Safari 11
2019-10-28 14:08:31 +01:00
streamich
456d15827d
style: 💄 apply yarn lint:fix
2019-10-26 10:54:32 +02:00
Vadim Dalecky
79ba4ef832
feat: add createBreakpoint
2019-10-25 18:18:40 +02:00
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
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
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