ant-design / cssinjs

https://ant-design.github.io/cssinjs
MIT License
235 stars 57 forks source link

fix: `useStyleRegister` return function uses useCallback wrapping #176

Open dream2023 opened 4 months ago

dream2023 commented 4 months ago

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

codecov-commenter commented 4 months ago

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 ```diff @@ 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.