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

fix(layout): 修复layout组件在销毁时,删除了其他不相关的SWR缓存 #7737

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

febear
Copy link
Contributor

@febear febear commented Sep 27, 2023

将layout组件销毁的SWR 缓存清除策略调整为仅清空menuDataItems相关的SWR 缓存defaultId

@github-actions
Copy link

github-actions bot commented Sep 27, 2023

😭 Deploy PR Preview failed.

@codecov
Copy link

codecov bot commented Sep 30, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (0e9c496) 97.99% compared to head (a05ba60) 97.99%.

❗ Current head a05ba60 differs from pull request most recent head 749e279. Consider uploading reports for the commit 749e279 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7737   +/-   ##
=======================================
  Coverage   97.99%   97.99%           
=======================================
  Files         298      298           
  Lines        9356     9356           
  Branches     3485     3485           
=======================================
  Hits         9168     9168           
  Misses        173      173           
  Partials       15       15           
Files Coverage Δ
packages/layout/src/ProLayout.tsx 98.88% <100.00%> (ø)

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

@chenshuai2144 chenshuai2144 merged commit 8f08d3d into ant-design:master Oct 5, 2023
7 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.

2 participants