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: memo onMouseEnter、onMouseLeave #1061

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

linxianxi
Copy link
Contributor

@linxianxi linxianxi commented Dec 20, 2023

自定义 components body 的 cell 时,用 React.memo 可以自定义比较 style 等一些引用类型,但是这两个函数无法自定义 memo。

Copy link

vercel bot commented Dec 20, 2023

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

Name Status Preview Comments Updated (UTC)
table ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 20, 2023 2:43am

src/Cell/index.tsx Outdated Show resolved Hide resolved
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b0b072c) 99.51% compared to head (7dd5335) 99.51%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1061   +/-   ##
=======================================
  Coverage   99.51%   99.51%           
=======================================
  Files          47       47           
  Lines        4517     4518    +1     
  Branches      571      571           
=======================================
+ Hits         4495     4496    +1     
  Misses         22       22           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zombieJ zombieJ merged commit 3128690 into react-component:master Dec 21, 2023
10 checks passed
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