xobotyi
cb4a735b84
useMediatedState implementation, tests and docs;
2019-10-14 20:30:07 +03:00
Ward
a38f026beb
refactor: useInterval refactor + docs ( #626 )
2019-10-13 17:54:30 +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
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
Ward
9ea3548e4c
feat: reset util callback for useList ( #654 )
2019-10-08 08:30:21 +11:00
Ward Oosterlijnck
471da2aea3
docs: useSearchParam warning about hash routers, closes #637
2019-10-07 21:07:39 +11:00
Ward Oosterlijnck
03ccfa9845
docs: add useUpsert to readme
2019-10-07 20:50:19 +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
Arty
b1fc6a75a6
docs: useToggle demo link ( #648 )
2019-10-07 14:14:02 +11:00
Arty
9f003fda1c
docs: usePrevious demo link ( #651 )
2019-10-06 13:12:57 +11:00
Ward Oosterlijnck
86c1f87e8e
docs: added useSize initial size parameter, related #584
2019-09-18 15:52:54 +02:00
xobotyi
9543e23ca3
useValidatableState implementation;
2019-09-04 04:10:11 +03:00
Ward Oosterlijnck
e88f0ceb8a
docs: fix and improve useCopyToClipboard documentation
2019-09-02 23:15:37 +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
streamich
64ac924edf
feat: 🎸 support server-side rendering in useSearchParam() hook
2019-09-01 23:07:43 +02:00
streamich
b7ad911c04
docs: ✏️ add useSearchParam() docs
2019-09-01 22:25:30 +02:00
realdennis
a64e757dac
correct the code format make review focus in code
2019-08-30 23:54:32 +08:00
realdennis
c92b4d7400
Update the corresponding hooks usage docs
2019-08-30 21:51:38 +08:00
lintuming
611a4263f6
fix doc typo
2019-08-28 10:20:40 +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
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
Anton Zinovyev
482b57f713
Merge pull request #544 from DmacMcgreg/patch-1
...
fix: update createReducer to fix initial state
2019-08-25 22:27:06 +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
Vadim Dalecky
55b6cad1d0
Merge pull request #559 from d-asensio/add_use_state_wheel
...
feat: add useStateList
2019-08-25 20:00:12 +02:00
David Asensio Cañas
8d84340ad4
feat: add useCircularIterate
2019-08-25 13:55:11 +02:00
Vadim Dalecky
a6ee928471
Merge pull request #561 from streamich/fix-#550
...
fix: make useLockBodyScroll support iframes
2019-08-25 13:39:50 +02:00
streamich
e6dd5de395
docs: ✏️ add useHarmonicIntervalFn() hook documentations
2019-08-25 13:03:01 +02:00
xobotyi
2617d74b8a
fix : #550
2019-08-25 07:41:33 +03:00
lintuming
fea782051e
useMeasure
2019-08-23 18:53:41 +08:00
xobotyi
d4164998e2
useTimeout:
...
- `useTimeoutFn` based implementation (as a special case of it);
- improved docs;
- added tests;
2019-08-22 01:18:40 +03:00
xobotyi
210ea60595
useTimeoutFn implementation;
2019-08-22 00:49:02 +03:00
Vadim Dalecky
106906013f
fix: Reworked useBattery hook
2019-08-20 23:25:05 +02:00
Dmac
fd083f2690
fix: update createReducer to fix initial state
2019-08-20 12:01:03 -04:00
xobotyi
61b0355e5c
useRefMounted deprecation;
2019-08-20 00:58:41 +03:00
xobotyi
0e9894d28e
Rework vol.2 =)
...
Added fetching indicator;
Fixed isMounted state;
Mock function returned for browsers not supporting the Battery API;
Using react-fast-compare to avoid useless updates;
2019-08-20 00:50:59 +03:00
Vadim Dalecky
a7c2899382
feat: add useUpsert
2019-08-19 18:22:02 +02:00
xobotyi
310fb6dc55
Reworked useBattery hook;
...
Fix : #308 ;
2019-08-19 12:06:20 +03:00
xobotyi
1628e57175
Implemented #273 ;
...
Added runtime type checks;
Tests for all that stuff;
Docs;
2019-08-14 02:49:53 +03:00
petterive
915b25a45b
docs: ✏️ add documentation
2019-08-05 23:19:28 +02:00
Anton Zinovyev
da3628e201
Merge branch 'master' into master
2019-08-03 02:34:02 +03:00
xobotyi
8f3665b071
Fix docs;
2019-08-03 02:19:28 +03:00
xobotyi
322b45f36c
Merge remote-tracking branch 'origin/master'
...
# Conflicts:
# docs/useRafLoop.md
2019-08-03 02:15:27 +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
8e13ddce36
docs: format useRafLoop.md
2019-08-03 01:08:15 +02:00
Vadim Dalecky
5e0ff869de
Merge branch 'master' into use-mounted-state
2019-08-03 01:03:21 +02:00
dabuside
8c820ce063
fix(useKeyboardJs): fix argument type error
2019-08-02 12:19:20 +08:00