ant-design / cssinjs

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

enhance: clean cache if not exist anymore #132

Closed zombieJ closed 11 months ago

zombieJ commented 11 months ago

如果样式已经移除,则清理 cacheMap 以优化页面来回切换时不必要的损耗。

codecov-commenter commented 11 months ago

Codecov Report

Patch coverage: 95.45% and project coverage change: -0.02 :warning:

Comparison is base (523e1f1) 94.82% compared to head (5a98ba9) 94.80%.

:exclamation: Current head 5a98ba9 differs from pull request most recent head 15d8786. Consider uploading reports for the commit 15d8786 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #132 +/- ## ========================================== - Coverage 94.82% 94.80% -0.02% ========================================== Files 24 24 Lines 2029 2041 +12 Branches 318 321 +3 ========================================== + Hits 1924 1935 +11 - Misses 105 106 +1 ``` | [Impacted Files](https://app.codecov.io/gh/ant-design/cssinjs/pull/132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | Coverage Δ | | |---|---|---| | [src/hooks/useStyleRegister/cacheMapUtil.ts](https://app.codecov.io/gh/ant-design/cssinjs/pull/132?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#diff-c3JjL2hvb2tzL3VzZVN0eWxlUmVnaXN0ZXIvY2FjaGVNYXBVdGlsLnRz) | `95.78% <95.45%> (-0.60%)` | :arrow_down: |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

github-actions[bot] commented 11 months ago

😭 Deploy PR Preview 15d8786e0fcb34328152f1246f3d73704de766b9 failed. Build logs

🤖 By surge-preview

afc163 commented 11 months ago

是不是应该先发 alpha 版本做测试。。

zombieJ commented 11 months ago

是不是应该先发 alpha 版本做测试。。

嗯,之前主体应该是 alpha 更保险一些。