291 Commits

Author SHA1 Message Date
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
Ward Oosterlijnck
3bd1cbcf9d Add useToggle tests 2019-05-08 19:40:39 +10:00
Ward Oosterlijnck
76640295d5 Update useToggle docs 2019-05-08 19:32:00 +10:00
Ward Oosterlijnck
3f5e5c9222 useToggle no param casting, closes #278 2019-05-08 19:30:59 +10:00
Ward Oosterlijnck
3bf12f1137 test: added tests for useTitle 2019-05-08 08:25:58 +10:00
Ward Oosterlijnck
dd5c1efd83 usePrevious tests 2019-05-07 20:40:38 +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
Josef Brandl
65bffca22f fix(useAudio): src change should reset isPlaying state 2019-05-01 15:01:12 +02:00
Markus Maga
6a651be790
fix(useRefMounted): only run and cleanup once 2019-04-29 16:57:28 +02:00
liaoyinglong
6638c1a211 feat: add type define for createMemo 2019-04-29 10:18:50 +08:00
Va Da
01959a12e3
fix: make options useGeolocation optional 2019-04-23 22:01:20 +02:00
Denys Dovhan
b33802d03a
Add options for useGeolocation 2019-04-23 17:54:48 +03:00
streamich
f14e1d77d2 fix: 🐛 support click away on iOS, allow user to chose events 2019-04-23 16:34:05 +02:00
streamich
ce76edfa64 fix: 🐛 don't fire typing event on modifier keys pressed 2019-04-18 23:30:21 +02:00
Ankith Konda
379e4577c9 add lint-staged for lint fix add check ts 2019-04-13 12:30:56 +10:00
Ankith Konda
9564332ef3 Make requested changes and add yarn lint to CircleCI 2019-04-13 00:34:59 +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
1936589311 style: alphabetize index.ts 2019-04-12 19:20:30 +10:00
Ward Oosterlijnck
4e996fc436
test: useWindowSize
Tests for useWindowSize
2019-04-11 19:55:54 +10:00
Ankith Konda
77426db438 Impliment requested changes 2019-04-11 19:38:31 +10: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
Ward Oosterlijnck
048030d855 Add enabled parameter + return message from handler, #220 2019-04-11 13:38:49 +10:00
Ankith Konda
00fec11ffb Use react-hooks-testing-library 2019-04-11 09:14:44 +10:00
Ankith Konda
d5eb155964 use __tests__ instead of tests for consistency 2019-04-11 08:45:29 +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
Manoj Bahuguna
7a670a2e6d fix(useIdle): include 'ms' prop in uesEffect dependencies 2019-04-10 13:15:08 +00:00
Ankith Konda
2ef6d227ef Add tests for useWindowSize 2019-04-10 19:56:44 +10:00
Ilia Lesik
a428a15eb9 Add useBeforeUnload react hook 2019-04-10 09:39:02 +03:00