1378 Commits

Author SHA1 Message Date
streamich
481e807e39 test: 💍 add useSearchParam tests 2019-09-01 23:04:51 +02:00
streamich
b7ad911c04 docs: ✏️ add useSearchParam() docs 2019-09-01 22:25:30 +02:00
streamich
b22f32f6f6 feat: 🎸 add useSearchParam() hook 2019-09-01 22:21:14 +02:00
Renovate Bot
60bca98eb4 chore(deps): update dependency husky to v3.0.5 2019-09-01 17:58:52 +00:00
realdennis
a64e757dac correct the code format make review focus in code 2019-08-30 23:54:32 +08:00
realdennis
ef1dc1bf76 Test. add testing for useAudio 2019-08-30 23:21:24 +08:00
realdennis
c92b4d7400 Update the corresponding hooks usage docs 2019-08-30 21:51:38 +08:00
Vadim Dalecky
1646ecff9f
Merge pull request #578 from streamich/dependabot/npm_and_yarn/mixin-deep-1.3.2
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2
2019-08-30 15:34:59 +02:00
Mario Beltrán
af7e61b5cf
Fix useUpdate returned callback (#570) 2019-08-30 11:00:29 +02:00
Mario Beltrán
4c1bb95651
First bunch of tests for lifecycle hooks blocks (#574)
* Add tests for useMount hook

* Add tests for useUnmount hook

* Add tests for useEffectOnce hook
2019-08-30 10:58:25 +02:00
realdennis
4dde514de8 Using paused property instead of isPlaying 2019-08-30 13:21:00 +08:00
dependabot[bot]
5552e2f661
chore(deps): bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-28 22:50:57 +00:00
lintuming
f1d51fcff6 delete test file 2019-08-28 10:32:35 +08:00
lintuming
4167140b5f fix typo 2019-08-28 10:25:20 +08:00
lintuming
c57b31061a update README 2019-08-28 10:22:53 +08:00
lintuming
611a4263f6 fix doc typo 2019-08-28 10:20:40 +08:00
lintuming
4deb48b35e add useMeasure story 2019-08-28 09:28:28 +08:00
Renovate Bot
ff615a3807 chore(deps): update dependency lint-staged to v9.2.5 2019-08-27 07:56:50 +00:00
Anton Zinovyev
d5ca05e231
Merge pull request #568 from streamich/imp-useTimeout
fix: make useTimeoutFn work properly:
2019-08-27 01:07:39 +03:00
xobotyi
a6c2d65a35 fix typo; 2019-08-27 00:01:46 +03:00
Vadim Dalecky
60c9d55b0a
test: add tests for useInterval hook 2019-08-26 22:52:51 +02:00
Mario Beltrán Alarcón
4cbe1a787e Add tests for useInterval hook 2019-08-26 21:47:53 +02:00
xobotyi
42fdec140b useDebounce:
- tests;
- fix function change debounce clear and reset;
- declare return type;
2019-08-26 10:04:07 +03:00
xobotyi
00e0c2691b make useTimeoutFn work properly:
- reset function should clear previous timeout;
- function change should not reset the timeout;
2019-08-26 10:04:06 +03:00
xobotyi
438a56606b make useTimeoutFn work properly:
- reset function should clear previous timeout;
- function change should not reset the timeout;
2019-08-26 09:58:28 +03:00
xobotyi
bb0ab036a3 Added state checker;
Updated story;
Updated docs;
2019-08-26 01:04:28 +03:00
semantic-release-bot
0b458dfd31 chore(release): 11.3.2 [skip ci]
## [11.3.2](https://github.com/streamich/react-use/compare/v11.3.1...v11.3.2) (2019-08-25)

### Bug Fixes

* useThrottle & useThrottleFn proper timeout type; ([e2cdb94](https://github.com/streamich/react-use/commit/e2cdb94))
v11.3.2
2019-08-25 21:58:13 +00:00
Vadim Dalecky
9b7c0047d2
Merge pull request #567 from streamich/fix-timeout-type
fix: useThrottle & useThrottleFn proper timeout type;
2019-08-25 23:55:49 +02:00
xobotyi
66f0690581 Way simpler with useTimeoutFn; 2019-08-26 00:52:57 +03:00
xobotyi
036edfdeee Merge https://github.com/streamich/react-use into feat/enhance_useDebounce 2019-08-26 00:41:30 +03:00
xobotyi
e2cdb94c9b fix: useThrottle & useThrottleFn proper timeout type; 2019-08-26 00:33:22 +03:00
semantic-release-bot
bca86db57d chore(release): 11.3.1 [skip ci]
## [11.3.1](https://github.com/streamich/react-use/compare/v11.3.0...v11.3.1) (2019-08-25)

### Bug Fixes

* update createReducer to fix initial state ([fd083f2](https://github.com/streamich/react-use/commit/fd083f2))
v11.3.1
2019-08-25 19:29:01 +00:00
Anton Zinovyev
482b57f713
Merge pull request #544 from DmacMcgreg/patch-1
fix: update createReducer to fix initial state
2019-08-25 22:27:06 +03:00
Anton Zinovyev
943acb25e8
Merge pull request #565 from streamich/renovate/lint-staged-9.x
chore(deps): update dependency lint-staged to v9.2.4
2019-08-25 22:23:54 +03:00
semantic-release-bot
254eac5c93 chore(release): 11.3.0 [skip ci]
# [11.3.0](https://github.com/streamich/react-use/compare/v11.2.0...v11.3.0) (2019-08-25)

### Features

* add usePreviousDistinct ([#551](https://github.com/streamich/react-use/issues/551)) ([6c3e569](https://github.com/streamich/react-use/commit/6c3e569))
v11.3.0
2019-08-25 19:22:29 +00:00
Paul Sachs
6c3e569db6 feat: add usePreviousDistinct (#551)
* feat: add usePreviousDistinct

* Cleanup

* Added storybook docs

* improve demo in docs
2019-08-25 21:20:44 +02:00
semantic-release-bot
c5151c74a2 chore(release): 11.2.0 [skip ci]
# [11.2.0](https://github.com/streamich/react-use/compare/v11.1.1...v11.2.0) (2019-08-25)

### Features

* add useCircularIterate ([8d84340](https://github.com/streamich/react-use/commit/8d84340))
v11.2.0
2019-08-25 18:04:19 +00:00
Vadim Dalecky
55b6cad1d0
Merge pull request #559 from d-asensio/add_use_state_wheel
feat: add useStateList
2019-08-25 20:00:12 +02:00
Renovate Bot
36d396d346
chore(deps): update dependency lint-staged to v9.2.4 2019-08-25 17:46:39 +00:00
Renovate Bot
11860640ab chore(deps): pin dependency react-frame-component to 4.1.1 2019-08-25 12:42:08 +00:00
David Asensio Cañas
8d84340ad4 feat: add useCircularIterate 2019-08-25 13:55:11 +02:00
semantic-release-bot
c7e9ea0811 chore(release): 11.1.1 [skip ci]
## [11.1.1](https://github.com/streamich/react-use/compare/v11.1.0...v11.1.1) (2019-08-25)

### Bug Fixes

* [#550](https://github.com/streamich/react-use/issues/550) ([2617d74](https://github.com/streamich/react-use/commit/2617d74))
v11.1.1
2019-08-25 11:41:45 +00:00
Vadim Dalecky
a6ee928471
Merge pull request #561 from streamich/fix-#550
fix: make useLockBodyScroll support iframes
2019-08-25 13:39:50 +02:00
semantic-release-bot
9c56ce93ee chore(release): 11.1.0 [skip ci]
# [11.1.0](https://github.com/streamich/react-use/compare/v11.0.2...v11.1.0) (2019-08-25)

### Features

* 🎸 add useHarmonicIntervalFn() hook ([d9f21e3](https://github.com/streamich/react-use/commit/d9f21e3))
v11.1.0
2019-08-25 11:10:53 +00:00
Vadim Dalecky
b17f5754bb
Merge pull request #562 from streamich/use-harmonic-interval
Use harmonic interval
2019-08-25 13:07:58 +02:00
streamich
3bb525a5e1 docs: ✏️ fix Storybook useHarmonicIntervalFn() link 2019-08-25 13:05:10 +02:00
streamich
e6dd5de395 docs: ✏️ add useHarmonicIntervalFn() hook documentations 2019-08-25 13:03:01 +02:00
streamich
d9f21e30e1 feat: 🎸 add useHarmonicIntervalFn() hook 2019-08-25 12:52:03 +02:00
xobotyi
2617d74b8a fix: #550 2019-08-25 07:41:33 +03:00
Vadim Dalecky
a851e90408
style: TSLint and .editorconfig improvements 2019-08-24 01:37:45 +02:00