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

项目升级到umi4后,无法缓存页面 #47

Closed
choby opened this issue Aug 2, 2022 · 1 comment
Closed

项目升级到umi4后,无法缓存页面 #47

choby opened this issue Aug 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@choby
Copy link

choby commented Aug 2, 2022

项目升级到umi4后, 使用withSwitchTab方法无法阻止组件重新渲染, 也就导致每次切换回之前打开过的标签页, 页面内容会重新渲染. 不知道是我升级umi4的时候配置除了问题, 还是use-switch-tab组件本身兼容性的问题;
可以将项目升级到umi4进行测试一下然后告知处理方案吗? 谢谢.

@yunsii
Copy link
Owner

yunsii commented Aug 2, 2022

可以先看看这个讨论 yunsii/use-switch-tabs#5

umi 4 开始使用 React Router 6 了,不是之前的方案了,后续会尝试跟进。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants