Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename useDebounceCallback and useThrottleCallback #129

Closed
xobotyi opened this issue Jun 16, 2021 · 1 comment
Closed

Rename useDebounceCallback and useThrottleCallback #129

xobotyi opened this issue Jun 16, 2021 · 1 comment
Assignees
Labels
🪲 bug Something isn't working released

Comments

@xobotyi
Copy link
Contributor

xobotyi commented Jun 16, 2021

useDebounceCallback -> useDebouncedCallback
useThrottleCallback -> useThrottledCallback

This will result a breaking change

@xobotyi xobotyi added the 🪲 bug Something isn't working label Jun 16, 2021
@xobotyi xobotyi self-assigned this Jun 16, 2021
xobotyi added a commit that referenced this issue Jun 16, 2021
resolves #129

BREAKING CHANGE:
`useDebounceCallback` renamed to `useDebouncedCallback`
`useThrottleCallback` renamed to `useThrottledCallback`
xobotyi added a commit that referenced this issue Jun 16, 2021
resolves #129

BREAKING CHANGE:
`useDebounceCallback` renamed to `useDebouncedCallback`
`useThrottleCallback` renamed to `useThrottledCallback`
xobotyi added a commit that referenced this issue Jun 16, 2021
resolves #129

BREAKING CHANGE:
`useDebounceCallback` renamed to `useDebouncedCallback`
`useThrottleCallback` renamed to `useThrottledCallback`
github-actions bot pushed a commit that referenced this issue Jun 16, 2021
# [3.0.0](v2.2.0...v3.0.0) (2021-06-16)

### Bug Fixes

* rename useThrottleCallback and useDebounceCallback ([#130](#130)) ([77f66d7](77f66d7)), closes [#129](#129)

### Features

* add `maxWait` parameter to `useDebouncedCallback` hook ([#131](#131)) ([600baa8](600baa8))
* change args for `useThrottledCallback` and `useDebouncedCallback` ([#132](#132)) ([131d98e](131d98e))
* new hooks `useDebouncedEffect` and `useDebouncedState` ([#133](#133)) ([1d164ff](1d164ff))

### BREAKING CHANGES

* `delay` and `deps` arguments are swapped position for
`useThrottledCallback` and `useDebouncedCallback` hooks to be aligned
with `useCallback` signature.
* `useDebounceCallback` renamed to `useDebouncedCallback`
`useThrottleCallback` renamed to `useThrottledCallback`
@xobotyi
Copy link
Contributor Author

xobotyi commented Jun 16, 2021

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working released
Development

No branches or pull requests

1 participant