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 usePrevious #25

Merged
merged 4 commits into from
Apr 28, 2021
Merged

feat: new hook usePrevious #25

merged 4 commits into from
Apr 28, 2021

Conversation

xobotyi
Copy link
Contributor

@xobotyi xobotyi commented Apr 28, 2021

What new hook does?

Returns the value passed to the hook on previous render.

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 Apr 28, 2021
@xobotyi xobotyi requested a review from JoeDuncko April 28, 2021 06:58
@codecov
Copy link

codecov bot commented Apr 28, 2021

Codecov Report

Merging #25 (eb474fc) into master (0ebfd62) will increase coverage by 0.73%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   94.00%   94.73%   +0.73%     
==========================================
  Files           9       10       +1     
  Lines          50       57       +7     
  Branches        5        5              
==========================================
+ Hits           47       54       +7     
  Misses          3        3              
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/usePrevious.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 0ebfd62...eb474fc. Read the comment docs.

@xobotyi xobotyi requested a review from JoeDuncko April 28, 2021 15:36
@xobotyi xobotyi merged commit 132032a into master Apr 28, 2021
@xobotyi xobotyi deleted the usePreviousValue branch April 28, 2021 15:42
github-actions bot pushed a commit that referenced this pull request Apr 28, 2021
# [1.8.0](v1.7.5...v1.8.0) (2021-04-28)

### Features

* new hook usePrevious ([#25](#25)) ([132032a](132032a))
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.8.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
Development

Successfully merging this pull request may close these issues.

2 participants