Skip to content

Conversation

zombieJ
Copy link
Member

@zombieJ zombieJ commented Jun 22, 2022

No description provided.

@vercel
Copy link

vercel bot commented Jun 22, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
util ✅ Ready (Inspect) Visit Preview Jun 22, 2022 at 5:57AM (UTC)

@codecov
Copy link

codecov bot commented Jun 22, 2022

Codecov Report

Merging #315 (0454489) into master (813f946) will increase coverage by 0.84%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #315      +/-   ##
==========================================
+ Coverage   66.46%   67.31%   +0.84%     
==========================================
  Files          47       47              
  Lines        1011     1031      +20     
  Branches      335      340       +5     
==========================================
+ Hits          672      694      +22     
+ Misses        301      299       -2     
  Partials       38       38              
Impacted Files Coverage Δ
src/hooks/useEvent.ts 100.00% <100.00%> (ø)
src/hooks/useMergedState.ts 100.00% <100.00%> (+6.66%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

? (defaultStateValue as any)()
: defaultStateValue;

return [finalValue, source, finalValue];
Copy link
Contributor

Choose a reason for hiding this comment

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

怎么三个?

Copy link
Member Author

Choose a reason for hiding this comment

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

这个是内部状态,用来记录 change prev 的。外部还是原本的

@zombieJ zombieJ merged commit e6a8a2d into master Jun 22, 2022
@delete-merged-branch delete-merged-branch bot deleted the refactor branch June 22, 2022 07:19
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.

2 participants