1680 Commits

Author SHA1 Message Date
Alexey Bojhev
83f4c466b0
Typings for useDefault
Added generic type for `useDefault` state
2020-01-18 21:20:05 +03:00
semantic-release-bot
1ec99ebae8 chore(release): 13.20.0 [skip ci]
# [13.20.0](https://github.com/streamich/react-use/compare/v13.19.0...v13.20.0) (2020-01-17)

### Features

* `useMap`: allow resetting with provided value other then initial ([7645f72](7645f7249d))
v13.20.0
2020-01-17 16:03:49 +00:00
Vadim Dalecky
be5d60a5bd
Merge pull request #908 from mattleonowicz/pr/useMap-reset-with-data
feat: `useMap`: allow resetting with provided value other then initial
2020-01-17 08:01:08 -08:00
Mateusz Leonowicz
dc07e0e3b9 add setAll instead of overloading reset 2020-01-17 15:56:37 +00:00
Mateusz Leonowicz
7645f7249d feat: useMap: allow resetting with provided value other then initial 2020-01-17 15:03:35 +00:00
Renovate Bot
fc595e8618 chore(deps): update storybook monorepo to v5.3.6 2020-01-17 09:36:50 +00:00
Renovate Bot
9439982be3 chore(deps): update dependency typescript to v3.7.5 2020-01-16 21:51:03 +00:00
Renovate Bot
682df0f3e9 chore(deps): update storybook monorepo to v5.3.5 2020-01-16 20:43:11 +00:00
semantic-release-bot
5146baa283 chore(release): 13.19.0 [skip ci]
# [13.19.0](https://github.com/streamich/react-use/compare/v13.18.0...v13.19.0) (2020-01-16)

### Features

* add useError hook ([65f3644](65f3644205))
v13.19.0
2020-01-16 18:29:54 +00:00
Vadim Dalecky
51d53b76c7
Merge pull request #902 from ayush987goyal/pr/use-error
feat: add useError hook
2020-01-16 10:28:08 -08:00
Ayush Goyal
65f3644205 feat: add useError hook 2020-01-16 21:13:35 +05:30
Renovate Bot
7c56ed2ae2 chore(deps): pin dependency jest-localstorage-mock to 2.4.0 2020-01-16 09:44:40 +00:00
semantic-release-bot
8fdf808ca4 chore(release): 13.18.0 [skip ci]
# [13.18.0](https://github.com/streamich/react-use/compare/v13.17.0...v13.18.0) (2020-01-16)

### Bug Fixes

* check for null ([d619c39](d619c39a21))

### Features

* add serializer/deserializer option to useLocalStorage ([5316510](5316510bab))
v13.18.0
2020-01-16 08:41:01 +00:00
Vadim Dalecky
84d29b2413
Merge pull request #896 from ayush987goyal/pr/useLocalStorage-update
feat: add serializer/deserializer option to useLocalStorage
2020-01-16 00:38:13 -08:00
Renovate Bot
961504e260 chore(deps): update storybook monorepo to v5.3.4 2020-01-16 08:22:42 +00:00
Ayush Goyal
d619c39a21 fix: check for null 2020-01-16 08:17:56 +05:30
Ayush Goyal
5316510bab feat: add serializer/deserializer option to useLocalStorage 2020-01-15 23:14:17 +05:30
semantic-release-bot
2b1bd559d5 chore(release): 13.17.0 [skip ci]
# [13.17.0](https://github.com/streamich/react-use/compare/v13.16.1...v13.17.0) (2020-01-15)

### Features

* add support for body lock on iOS ([d778408](d7784084fe))
v13.17.0
2020-01-15 11:15:14 +00:00
Vadim Dalecky
d7784084fe
feat: add support for body lock on iOS 2020-01-15 03:13:11 -08:00
Renovate Bot
2196af8004 chore(deps): update dependency @types/jest to v24.9.0 2020-01-15 10:44:30 +00:00
semantic-release-bot
e02ad2ef1c chore(release): 13.16.1 [skip ci]
## [13.16.1](https://github.com/streamich/react-use/compare/v13.16.0...v13.16.1) (2020-01-14)

### Bug Fixes

* update the types dep for js-cookie ([5c55d59](5c55d59a7d))
v13.16.1
2020-01-14 17:42:55 +00:00
Vadim Dalecky
a978e53591
Merge pull request #894 from ayush987goyal/pr/cookie-ts-fix
fix: update the types dependency for js-cookie
2020-01-14 09:40:54 -08:00
Ayush Goyal
5c55d59a7d fix: update the types dep for js-cookie 2020-01-14 22:55:20 +05:30
semantic-release-bot
7f44e628d6 chore(release): 13.16.0 [skip ci]
# [13.16.0](https://github.com/streamich/react-use/compare/v13.15.0...v13.16.0) (2020-01-14)

### Features

* add option to useTitle to restore title on un-mount ([b8b3e47](b8b3e479ce))
v13.16.0
2020-01-14 15:34:10 +00:00
Vadim Dalecky
b8b3e479ce
feat: add option to useTitle to restore title on un-mount 2020-01-14 07:28:45 -08:00
Renovate Bot
75835cb0cc chore(deps): update storybook monorepo to v5.3.3 2020-01-14 11:32:00 +00:00
zsh2401
8faa71f9ac useTitle could restore title optionally 2020-01-14 14:47:58 +08:00
MrHuangJser
08d13933e3
Update docs/createGlobalState.md
fix spell issue

Co-Authored-By: Vadim Dalecky <streamich@users.noreply.github.com>
2020-01-14 08:57:59 +08:00
Renovate Bot
71aa6450ef chore(deps): update babel monorepo to v7.8.3 2020-01-13 23:42:54 +00:00
Renovate Bot
aa17a808ea chore(deps): update dependency ts-node to v8.6.2 2020-01-13 20:33:21 +00:00
Brendan Daoud
6d61c1d95a
Merge branch 'master' into pr/useStateContext 2020-01-13 18:08:09 +01:00
Renovate Bot
d1f96f03f8 chore(deps): update storybook monorepo to v5.3.2 2020-01-13 17:00:39 +00:00
Ayush Goyal
69c698afea chore: fix act warning in useAsync tests
* fix: act warning in useAsync.test

* fix: remove the comment
2020-01-13 07:55:09 -08:00
Brendan
9911106f8f Test for thrown error 2020-01-13 14:17:58 +01:00
Brendan
bc74530f35 Add create reducer context 2020-01-13 14:01:21 +01:00
Brendan
e34ee0e66c Allow initial value override 2020-01-13 13:32:24 +01:00
Renovate Bot
22e67cfbfe chore(deps): pin dependency @types/js-cookie to 2.2.4 2020-01-13 12:24:38 +00:00
Brendan
7285f7dc7a Add createStateContext 2020-01-13 13:09:29 +01:00
semantic-release-bot
a4fa5ec907 chore(release): 13.15.0 [skip ci]
# [13.15.0](https://github.com/streamich/react-use/compare/v13.14.3...v13.15.0) (2020-01-13)

### Features

* add useCookie hook ([4e5c90f](4e5c90f021))
v13.15.0
2020-01-13 11:39:52 +00:00
Vadim Dalecky
4e5c90f021
feat: add useCookie hook 2020-01-13 03:37:27 -08:00
Ayush Goyal
3e806fdc03 Update ts ref in doc 2020-01-13 07:26:33 +05:30
MrHuangJser
230efb8168 fix lint issue 2020-01-13 09:45:52 +08:00
MrHuangJser
41cbb8a6f5 add createGlobalState to story 2020-01-13 09:43:35 +08:00
MrHuangJser
8461e362d9 add createGlobalState to readme 2020-01-13 09:43:15 +08:00
MrHuangJser
ebc7b5b0f5 rename useGlobalState to createGlobalState 2020-01-13 09:42:56 +08:00
Renovate Bot
0d2c7b6aea chore(deps): update dependency @babel/preset-env to v7.8.2 2020-01-12 23:36:29 +00:00
Renovate Bot
a510c451d1 chore(deps): update storybook monorepo to v5.3.1 2020-01-12 15:48:48 +00:00
Renovate Bot
6dbdd791e4 chore(deps): update babel monorepo to v7.8.0 2020-01-12 00:54:48 +00:00
Ayush Goyal
c3c9061dbc update for prettier changes 2020-01-12 02:06:05 +05:30
Ayush Goyal
bc72bc13e7 Add useCookie hook 2020-01-12 02:00:24 +05:30