Skip to content

Conversation

@zombieJ
Copy link
Member

@zombieJ zombieJ commented Dec 3, 2021

No description provided.

@vercel
Copy link

vercel bot commented Dec 3, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/react-component/util/FpjJTjYC2nNpMttkBUd6cDoAktda
✅ Preview: https://util-git-opt-use-merge-state-react-component.vercel.app

@codecov
Copy link

codecov bot commented Dec 3, 2021

Codecov Report

Merging #275 (0895697) into master (f67b99b) will increase coverage by 0.67%.
The diff coverage is 87.50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #275      +/-   ##
==========================================
+ Coverage   62.23%   62.91%   +0.67%     
==========================================
  Files          43       43              
  Lines         911      914       +3     
  Branches      312      312              
==========================================
+ Hits          567      575       +8     
+ Misses        306      301       -5     
  Partials       38       38              
Impacted Files Coverage Δ
src/hooks/useMergedState.ts 86.66% <87.50%> (+20.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 f67b99b...0895697. Read the comment docs.

@zombieJ zombieJ merged commit 6f42fad into master Dec 3, 2021
@delete-merged-branch delete-merged-branch bot deleted the opt-use-merge-state branch December 3, 2021 09:21
(newValue: T) => {
setInnerValue(newValue);
if (mergedValue !== newValue && onChangeRef.current) {
onChangeRef.current(newValue, mergedValue);
Copy link

Choose a reason for hiding this comment

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

这一行代码没有被测试覆盖。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants