-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[WIP]feat: keep alive #3084
[WIP]feat: keep alive #3084
Conversation
@CJY0208 看看 |
很棒!能为 umi 间接做一点贡献,很荣幸 不过需要注意,目前的 CacheRoute 还无法与 react-transition-group 共同工作,启用 keepAlive 的路由将丢失路由动效 |
路由是按目录约定生成的要怎么支持keep alive? |
@LeoHuiyi 别着急,等云谦看看,方案可以的话,我会进一步支持。我们项目中用的都是约定式 |
Ant Design Pro preview using the current branch umi Built with commit 5175a22 |
# Conflicts: # packages/umi/yarn.lock
Pull Request Test Coverage Report for Build 6582
💛 - Coveralls |
# Conflicts: # packages/umi-ui/client/yarn.lock
keep alive功能还没添加到umi版本么,我用最新的版本没有效果 |
没合并呢 |
# Conflicts: # packages/umi-ui/client/yarn.lock # packages/umi/yarn.lock
嵌套路由相互跳转失效 |
# Conflicts: # packages/umi/test/dev.e2e.js # packages/umi/test/fixtures/build/ssr/test.js
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
跑不同,很多问题。 |
Checklist
npm test
passesDescription of change
只要route中配置属性keepAlive,就会被缓存
在不需要的时候,可以手动调用方法取消,下例的
/list
为上面设置了 keepAlive 的路由 path测试了添加了layout和不添加layout,都有效
This change is