195 Commits

Author SHA1 Message Date
Mario Beltrán Alarcón
86355db002 Merge branch 'original-master' into animation-block-tests
# Conflicts:
#	package.json
#	yarn.lock
2019-08-21 23:42:10 +02:00
Mario Beltrán Alarcón
3c43c4b05d Add useSpring tests 2019-08-21 23:36:50 +02:00
Vadim Dalecky
106906013f
fix: Reworked useBattery hook 2019-08-20 23:25:05 +02: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
2299646c57 No sense to pass deps due to we can observe the callback itself. 2019-08-03 02:13:12 +03:00
Vadim Dalecky
5e0ff869de
Merge branch 'master' into use-mounted-state 2019-08-03 01:03:21 +02:00
dabuside
b7481f6cd5 fix(storybook): fix useKeyboardJs import path 2019-08-02 13:45:47 +08: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
xobotyi
6d55666aa7 useRafLoop - React hook that calls given function inside the RAF loop. 2019-07-30 23:14:08 +03:00
leonardohabitzreuter
4e469c3ac6 useDefault hook 2019-07-22 15:36:34 -03:00
Vadim Dalecky
6645ed940a
feat: add useInterval hook 2019-07-17 00:58:00 +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
Ward Oosterlijnck
f1c0987f87 Example with dependency with a delay value slider 2019-07-16 19:47:50 +10:00
yangyi
fd7cda62e1
Merge branch 'master' into master 2019-07-11 16:36:03 +08:00
liyangyi
41f9bc6999 add useInterval hook 2019-07-11 11:17:25 +08:00
Vadim Dalecky
8dcbbf16cf
feat: expose useIsomorphicLayoutEffect + docs (#451)
Export useIsomorphicLayoutEffect + docs
2019-07-10 15:04:39 +02:00
Ward
588a0c5d23
feat: usePermission
Hook to query permission status of browser API's
2019-07-10 21:28:09 +10:00
Ward Oosterlijnck
02ed947c5d docs: useDeepCompareEffect category 2019-07-10 20:53:31 +10:00
Ward Oosterlijnck
192c9838b3 Export useIsomorphicLayoutEffect + docs 2019-07-10 20:47:52 +10:00
allen
e0618815af modify text 2019-07-02 13:08:53 +08:00
allen
6dc2dd572b feat: add voice option in use speech 2019-06-27 01:19:02 +08:00
allen
4da40b9cbb feat: add usePermission 2019-06-27 00:57:38 +08:00
Vadim Dalecky
c60df19ebc
feat: improve useClickAway() hook (#394) 2019-06-19 15:10:44 +02:00
Vadim Dalecky
8bd7ca9fac
Add useScrolling hook (#374)
Add useScrolling hook
2019-06-18 17:43:11 +02:00
James
760edf1695 feat: add useScrolling story 2019-06-17 11:09:20 +01:00
jeetiss
8fb58957b6 don't use alert in story 2019-06-14 22:18:47 +03:00
Ward Oosterlijnck
eaf29a1218 docs: createReducer 2019-06-12 23:58:54 +02:00
Ward Oosterlijnck
bcfb8b9cf7 fix 2019-06-12 18:56:07 +10:00
Vadim Dalecky
c3ecced951
Merge pull request #315 from streamich/createReducer 2019-06-04 10:00:51 -07:00
Vadim Dalecky
17036105ad
style: don't shadow variable 2019-06-02 07:28:09 +02:00
Ward Oosterlijnck
76640295d5 Update useToggle docs 2019-05-08 19:32:00 +10:00
Ward Oosterlijnck
bf0da5412d usePrevious docs 2019-05-07 20:33:31 +10:00
Ward Oosterlijnck
fa75954a0a usePrevious hook and story 2019-05-07 20:31:22 +10:00
Ward Oosterlijnck
766ab2f4e9 createReducer for redux middleware, related #164 2019-04-16 19:26:01 +10:00
Ankith Konda
f02b92d423 Add TSLint + Prettier and fix lint issues 2019-04-12 23:18:11 +10:00
Va Da
457127b58c
Merge pull request #223 from ManojBahuguna/master
fix(useIdle): include 'ms' prop in uesEffect dependencies
2019-04-12 11:56:03 +02:00
Ward Oosterlijnck
cc148366ba useBeforeUnload story and docs improvement 2019-04-11 18:08:15 +10:00
Ward Oosterlijnck
409db4f2d1 Improve useBeforeUnload story, #220 2019-04-11 13:39:05 +10:00
Ilia Lesik
7653597a37 Refactor useBeforeUnload with window.addEventListener
Remove message param from useBeforeUnload examples.
2019-04-10 21:54:42 +03:00
Manoj Bahuguna
8306ccf75d docs(useIdle): allows updating delay/ms 2019-04-10 13:16:58 +00:00
Ilia Lesik
a428a15eb9 Add useBeforeUnload react hook 2019-04-10 09:39:02 +03:00
streamich
6f6030a75e fix: 🐛 make useLocation work on server, improve hook 2019-04-09 15:49:49 +02:00
Ward Oosterlijnck
914fccfffc Rename useAsyncCallback to useAsyncFn 2019-04-09 08:48:14 +10:00