622 Commits

Author SHA1 Message Date
Vadim Dalecky
c32d02be02
feat: add voice option in useSpeech (#422)
feat: add voice option in useSpeech
2019-06-30 12:23:07 +02:00
nmccready
0a59869e83 fix(useMap): remove now also uses prevMap state to not overwrite or lose state 2019-06-27 11:56:14 -04:00
streamich
f0b8053700 style: 💄 run Prettier 2019-06-27 12:48:58 +02:00
nmccready
7ce8e4f962 fix: lint fixes via lint:fix 2019-06-26 17:01:54 -04:00
nmccready
3554f79449 fix: useMap uses prevMap state which is safer 2019-06-26 16:59:01 -04: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
James Jackson
9a0316ea90
Update useLocalStorage.ts 2019-06-25 23:12:41 -04:00
xiaoboost
7ff5475e89 should use pure function 2019-06-25 09:15:06 +08:00
streamich
007f684dec test: 💍 improve useObservable test 2019-06-23 12:45:59 +02:00
streamich
376eea322d fix: 🐛 use synchronouse effect to subscribe to observables 2019-06-23 11:58:51 +02: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
James
33554262ef fix: always return something from effect 2019-06-17 11:07:43 +01:00
James
d18d2d8683 fix: add additional ref check on clean up 2019-06-17 11:07:02 +01:00
Vadim Dalecky
fb795a6111
fix: add missing rate property 2019-06-16 12:17:16 +02:00
allen ge
f52f1f7f0f
feat: add rate option in useSpeech 2019-06-16 17:35:57 +08:00
jeetiss
8fb58957b6 don't use alert in story 2019-06-14 22:18:47 +03:00
jeetiss
3305f39c51 save callback independently
add deps for skip useless event sub/unsub
2019-06-14 22:18:22 +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
James
b3ba702ef8 feat: 🎸 add useScrolling hook to index 2019-06-11 10:51:26 +01:00
James
bd9928e6b3 feat: 🎸 add useScrolling hook 2019-06-11 10:47:04 +01:00
Vadim Dalecky
c3ecced951
Merge pull request #315 from streamich/createReducer 2019-06-04 10:00:51 -07:00
Vadim Dalecky
01f96bd304
style: fix linter errors 2019-06-02 07:28:39 +02:00
Vadim Dalecky
17036105ad
style: don't shadow variable 2019-06-02 07:28:09 +02:00
Vadim Dalecky
72e3036b15
fix: fix TypeScript error 2019-06-02 07:15:39 +02:00
NullVoxPopuli
ed17aed4bd make types better 2019-05-31 13:04:25 -04:00
streamich
09f9bdbe1b chore: 🤖 catch-up with master 2019-05-31 10:04:55 +02:00
streamich
3a0c683099 test: 💍 add tests for useObservable() hook 2019-05-30 20:43:53 +02:00
streamich
d0c3713dec feat: 🎸 improve useObservable() type annotations 2019-05-30 20:39:07 +02:00
streamich
70697d9626 style: 💄 fix linting error 2019-05-30 19:57:10 +02:00
NullVoxPopuli
a880724b04 add test proving that we can capture and await the callback result 2019-05-30 13:46:54 -04:00
NullVoxPopuli
facedc10aa simplify types 2019-05-30 13:41:12 -04:00
Kier Borromeo
eeb05e90db
Fix useSetState callback parameter type 2019-05-30 07:05:52 +08:00
NullVoxPopuli
4f8b1b9897 wrong default. whoops 2019-05-29 14:59:00 -04:00
NullVoxPopuli
1b59040e6e unify test style 2019-05-29 14:48:11 -04:00
NullVoxPopuli
30209518d5 finished 2019-05-29 14:11:42 -04:00
NullVoxPopuli
cabb9d6676 tests pass, now to fix types 2019-05-29 13:04:11 -04:00
NullVoxPopuli
85db1dd940 tests done for useAsync 2019-05-29 10:22:04 -04:00
NullVoxPopuli
3f9cc47975 add some tests 2019-05-29 10:08:12 -04:00
NullVoxPopuli
ab418cc6ec add tests, and fix the initial state issue 2019-05-28 17:30:59 -04:00
Va Da
913e12e4eb
Merge pull request #283 from MajorBreakfast/patch-1
fix(useAudio): src change should reset isPlaying state
2019-05-24 20:49:59 +02:00
Va Da
71c4e17f61
Merge pull request #299 from xiaoboost/fix-type-useMap
fix(useMap): more stringent type
2019-05-24 20:33:21 +02:00
Maxim Malov
c6d692a6dc
Pass arguments to useAsyncFn fetcher 2019-05-20 17:40:29 +06:00
Xiao
7bbbe47a58 fix(useMap): more stringent type 2019-05-12 13:11:19 +08:00
areschen
2c1a67188a refactor: move initialState to useRef 2019-05-09 11:30:57 +08:00
areschen
6af59e959b chore: use useRef to save state make async action to get current state 2019-05-09 11:18:47 +08:00
Ward Oosterlijnck
3bd1cbcf9d Add useToggle tests 2019-05-08 19:40:39 +10:00