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

feat: new hook useDebounceCallback #40

Merged
merged 3 commits into from
May 6, 2021
Merged

feat: new hook useDebounceCallback #40

merged 3 commits into from
May 6, 2021

Conversation

xobotyi
Copy link
Contributor

@xobotyi xobotyi commented May 5, 2021

What new hook does?

Makes passed function debounced, otherwise acts like useCallback.

Checklist

  • Have you read contribution guideline?
  • Does the code have comments in hard-to-understand areas?
  • Is there an existing issue for this PR?
    • link issue here
  • Have the files been linted and formatted?
  • Have the docs been updated?
  • Have the tests been added to cover new hook?
  • Have you run the tests locally to confirm they pass?

@xobotyi xobotyi added the 🎂 new hook New hook added label May 5, 2021
@xobotyi xobotyi requested a review from JoeDuncko May 5, 2021 07:11
@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #40 (993f349) into master (8e17b3c) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #40   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           18        19    +1     
  Lines          145       155   +10     
  Branches        21        22    +1     
=========================================
+ Hits           145       155   +10     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/useDebounceCallback.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e17b3c...993f349. Read the comment docs.

src/index.ts Outdated Show resolved Hide resolved
@xobotyi xobotyi changed the title feat: new hook useDebounceCallback feat: new hook useDebounceCallback May 5, 2021
Copy link
Contributor

@JoeDuncko JoeDuncko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

stories/useDebounceCallback.story.mdx Outdated Show resolved Hide resolved
stories/useDebounceCallback.stories.tsx Outdated Show resolved Hide resolved
@xobotyi xobotyi merged commit 8018be1 into master May 6, 2021
@xobotyi xobotyi deleted the useDebounceCallback branch May 6, 2021 06:45
github-actions bot pushed a commit that referenced this pull request May 6, 2021
# [1.16.0](v1.15.0...v1.16.0) (2021-05-06)

### Features

* new hook `useDebounceCallback` ([#40](#40)) ([8018be1](8018be1))
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2021

🎉 This PR is included in version 1.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

xobotyi pushed a commit that referenced this pull request May 6, 2021
# [1.16.0](v1.15.0...v1.16.0) (2021-05-06)

### Features

* new hook `useDebounceCallback` ([#40](#40)) ([8018be1](8018be1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants