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

perf(hooks): improve and refactor code #1217

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Conversation

silviuaavram
Copy link
Collaborator

@silviuaavram silviuaavram commented Jan 11, 2021

What:

#1213 but without breaking updates.
Fixes #1214

Why:

Bring the refactoring changes back to master.

How:

Kept the stateChangeTypes in their original place and passed them as parameter to the common reducer.

Checklist:

  • Documentation
  • Tests
  • TypeScript Types
  • Flow Types
  • Ready to be merged

@codecov-io
Copy link

Codecov Report

Merging #1217 (bb90a05) into master (b387f61) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #1217   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        18    +1     
  Lines         1705      1631   -74     
  Branches       493       464   -29     
=========================================
- Hits          1705      1631   -74     
Impacted Files Coverage Δ
src/hooks/reducer.js 100.00% <100.00%> (ø)
src/hooks/useCombobox/index.js 100.00% <100.00%> (ø)
src/hooks/useCombobox/reducer.js 100.00% <100.00%> (ø)
src/hooks/useCombobox/utils.js 100.00% <100.00%> (ø)
src/hooks/useMultipleSelection/index.js 100.00% <100.00%> (ø)
src/hooks/useMultipleSelection/utils.js 100.00% <100.00%> (ø)
src/hooks/useSelect/index.js 100.00% <100.00%> (ø)
src/hooks/useSelect/reducer.js 100.00% <100.00%> (ø)
src/hooks/useSelect/utils.js 100.00% <100.00%> (ø)
src/hooks/utils.js 100.00% <100.00%> (ø)
... and 2 more

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 b387f61...bb90a05. Read the comment docs.

@silviuaavram silviuaavram merged commit 0d87ecb into master Jan 12, 2021
@silviuaavram silviuaavram deleted the perf/improve-code branch January 12, 2021 13:58
@github-actions
Copy link

🎉 This PR is included in version 6.0.15 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error since downshift 6.0.12
2 participants