103 Commits

Author SHA1 Message Date
Mohamed Magdy
dcadfef74c add error state to useGeolocation state 2019-02-19 11:50:04 +02:00
streamich
524abe5702 fix: 🐛 fix useSetState after React update
As reported in #107

Issues: #107
2019-02-17 09:19:40 +01:00
streamich
afbacace24 fix: 🐛 fix typings in useOrientation sensor 2019-02-17 09:14:25 +01:00
ShizukuIchi
77ebef5433 fix useOrientation bug 2019-02-11 12:40:44 +08:00
Va Da
ad056092a3
feat: Add updateAt method for useList 2019-02-07 12:57:04 +01:00
streamich
27e26a0135 fix: 🐛 fix build and update React deps 2019-02-07 12:51:53 +01:00
Alon Niv
5c72b7c720
Add updateAt method for useList 2019-02-07 09:54:11 +02:00
Benjamin Makus
cab921fdaa useDebounce rerender optimization 2019-02-02 13:40:10 +01:00
Benjamin Makus
454012387b useToggle rerender optimization 2019-02-02 13:40:04 +01:00
Va Da
d854d27208
fix: use function to correctly update state in useToggle 2019-01-04 21:30:39 +01:00
Va Da
3478bd9974
Merge pull request #84 from ythecombinator/master
feat: 🎸add useKeyPress hook
2019-01-02 16:19:36 +01:00
Matheus Albuquerque
78d52c1c47 enhancement(useKeyPress): skip effects 2019-01-02 11:58:49 -03:00
hahabazinga
2f5af2ca66 fix: reset state when calling useEffect in useAsync 2018-12-29 16:26:15 +01:00
Matheus Albuquerque
6a1933b8ed docs(useKeyPress): update samples and docs on how to use key combos 2018-12-26 04:04:08 -03:00
Matheus Albuquerque
e53a20fe5b feat(useKeyPress): allow complex bindings via key combos 2018-12-26 03:58:37 -03:00
Matheus Albuquerque
01df885b9d feat: 🎸 add useKeyPress hook 2018-12-26 02:49:06 -03:00
streamich
55673cb2e8 fix: 🐛 just use any for setTimeout because of diff environments 2018-12-20 00:02:05 +01:00
streamich
8c66abe9ca fix: 🐛 use Timeout type for build to work 2018-12-19 23:06:01 +01:00
streamich
244a533d33 fix: 🐛 memoized does not receive arguments 2018-12-19 23:04:18 +01:00
Va Da
2c884dc79f
Merge pull request #82 from Jivings/useDebounce
feat: added useDebounce hook
2018-12-19 17:09:37 +01:00
James Ivings
88dd513624 feat: pass arguments to memoized callback (#81) 2018-12-19 17:07:26 +01:00
James Ivings
91ff6ba376
feat: added useDebounce 2018-12-18 18:12:24 -05:00
streamich
0bb69df39c chore: 🤖 catch up with master 2018-12-17 18:42:18 +01:00
Va Da
047198d914
Merge pull request #71 from smmoosavi/group-story-book
chore(storybook): group stories with type
2018-12-17 18:40:11 +01:00
streamich
7c1b107eb4 feat: 🎸 list all useAsync state props so that TS dont complain 2018-12-17 18:37:14 +01:00
streamich
533e26f832 feat: 🎸 remove experimental hooks
BREAKING CHANGE: useRenderProp and useAsync are removed
2018-12-17 18:34:56 +01:00
ZHAO Jinxiang
966af4aaee feat: use discriminated union in useAsync 2018-12-17 21:12:38 +08:00
streamich
cdc5ec596d refactor: 💡 use import hooks from React proper 2018-12-16 11:02:52 +01:00
Joe Jiang
5d7434867c fix: synchronously re-render bug of useRaf hook (#77)
* Another animation frame will be requested before the cleanup function for `useEffect` is executed.
* Use `useLayoutEffect` to replace `useEffect`, in order to guarantee `cancelAnimationFrame` can work well.

More details can be found in issue https://github.com/streamich/react-use/issues/76
2018-12-16 10:45:06 +01:00
streamich
dfb0510775 feat: 🎸 add useRefMounted hook 2018-12-05 15:23:43 +01:00
streamich
f755001de2 chore: 🤖 upgrade React 2018-12-05 15:09:43 +01:00
Seyyed Morteza Moosavi
b67f65682c chore(storybook): group stories with type 2018-11-21 16:56:51 +03:30
Fatih Kadir Akın
124ef993d9 feat: bump useWait 2018-11-10 23:32:44 +01:00
Va Da
e62447189a
chore: fix useSessionStorage demo 2018-11-06 21:52:28 +01:00
Va Da
f4078e9b95
chore: enable useLocalStorage demo 2018-11-06 21:51:46 +01:00
Fatih Kadir Akın
61c6058b5d feat: add useWait hook 2018-11-06 21:49:47 +01:00
Andrew Joslin
eca432a921 feat: add useSessionStorage hook
* Add useSessionStorage

* chore: uncomment session storage docs story
2018-11-06 21:45:57 +01:00
Li Yan
bfd114a407 feat: allow useSetState setter to accept function
* make setState of useSetState accept function argument

* update storybook
2018-11-02 08:50:04 +01:00
Gabriel Basilio Brito
37de6d26f2 chore: remove unused import in useLocalStorage.ts 2018-10-31 22:36:51 +01:00
streamich
c2aee592af feat: 🎸 add useHoverDirty hook 2018-10-30 18:18:51 +01:00
streamich
73e05c7d59 docs: ✏️ add useLocalStorage docs 2018-10-30 17:56:04 +01:00
streamich
4de7819058 chore: 🤖 playing with useAdopt for stateful components 2018-10-30 17:44:58 +01:00
streamich
d2117225e4 feat: 🎸 implement useLocalStorage without events 2018-10-30 17:44:42 +01:00
streamich
91bee9a3c2 feat: 🎸 add useAdopt hook 2018-10-29 23:07:39 +01:00
streamich
2d85c61ba8 feat: 🎸 add useRenderProp hook 2018-10-29 22:45:09 +01:00
streamich
ead142c6fb feat: 🎸 add useCallbag hook 2018-10-29 22:07:54 +01:00
streamich
90d2c224f6 feat: 🎸 add useOutsideClick hook 2018-10-29 21:47:06 +01:00
streamich
05da37fc18 chore: 🤖 start work on useDropArea 2018-10-29 21:40:36 +01:00
streamich
8670c7480f feat: 🎸 allow to pass React <video> el in useVideo and useAudio 2018-10-29 21:21:55 +01:00
streamich
ff05419df1 feat: 🎸 add useVideo hook 2018-10-29 21:12:26 +01:00