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: implement useFunctionalState #862

Merged
merged 1 commit into from
Jun 30, 2022
Merged

feat: implement useFunctionalState #862

merged 1 commit into from
Jun 30, 2022

Conversation

xobotyi
Copy link
Contributor

@xobotyi xobotyi commented Jun 30, 2022

close #530

What new hook does?

Like useState but instead of raw state, state getter returned.

Checklist

  • Have you read contribution guideline?
  • Does the code have comments in hard-to-understand areas?
  • Is there an existing issue for this PR?
  • 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 Jun 30, 2022
@xobotyi xobotyi requested a review from JoeDuncko June 30, 2022 20:47
@codecov
Copy link

codecov bot commented Jun 30, 2022

Codecov Report

Merging #862 (bfede03) into master (af8f4cd) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #862   +/-   ##
=======================================
  Coverage   99.89%   99.89%           
=======================================
  Files          57       58    +1     
  Lines         983      991    +8     
  Branches      177      177           
=======================================
+ Hits          982      990    +8     
  Partials        1        1           
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/useFunctionalState/useFunctionalState.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 834ea58...bfede03. Read the comment docs.

@xobotyi xobotyi merged commit 1491d38 into master Jun 30, 2022
@xobotyi xobotyi deleted the useFunctionalState branch June 30, 2022 20:55
github-actions bot pushed a commit that referenced this pull request Jun 30, 2022
# [14.7.0](v14.6.0...v14.7.0) (2022-06-30)

### Features

* implement `useFunctionalState` ([#862](#862)) ([1491d38](1491d38)), closes [#530](#530)
@xobotyi
Copy link
Contributor Author

xobotyi commented Jun 30, 2022

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

1 participant