react-component / util

Common Utils For React Component
util.vercel.app
MIT License
622 stars 176 forks source link

perf: avoid duplicated findStyles in updateCSS #494

Closed MadCcc closed 6 months ago

MadCcc commented 7 months ago

updateCSS 在插入样式时会调用两遍 findStyles,由于中间不存在 dom 变化(或者可忽略),这里可以省去一半 findStyles 执行时间。

vercel[bot] commented 7 months ago

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

Name Status Preview Comments Updated (UTC)
util ❌ Failed (Inspect) Jan 8, 2024 8:06am
codecov[bot] commented 7 months ago

Codecov Report

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

Comparison is base (5a3231f) 91.51% compared to head (3f30a90) 91.54%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #494 +/- ## ========================================== + Coverage 91.51% 91.54% +0.03% ========================================== Files 38 38 Lines 919 923 +4 Branches 280 283 +3 ========================================== + Hits 841 845 +4 Misses 76 76 Partials 2 2 ```

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