cssinjs icon indicating copy to clipboard operation
cssinjs copied to clipboard

fix: `useStyleRegister` return function uses useCallback wrapping

Open dream2023 opened this issue 1 year ago • 2 comments

dream2023 avatar Feb 29 '24 04:02 dream2023

@zombieJ 看看,你们自己也检查一下是否还有其他返回值是没有用 useCallback 或者 useMemo 的,这会导致重复渲染

dream2023 avatar Mar 02 '24 07:03 dream2023

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.82%. Comparing base (907a22b) to head (37ecf90).

:exclamation: Current head 37ecf90 differs from pull request most recent head 4235ff4. Consider uploading reports for the commit 4235ff4 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #176      +/-   ##
==========================================
+ Coverage   94.80%   94.82%   +0.01%     
==========================================
  Files          29       29              
  Lines        2619     2629      +10     
  Branches      394      394              
==========================================
+ Hits         2483     2493      +10     
  Misses        136      136              

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Mar 02 '24 11:03 codecov-commenter