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

那里有umi-plugin-cache-route的源码 #56

Closed
flyingFlowers opened this issue Nov 6, 2019 · 6 comments
Closed

那里有umi-plugin-cache-route的源码 #56

flyingFlowers opened this issue Nov 6, 2019 · 6 comments

Comments

@flyingFlowers
Copy link

想学习一下大神keep-alive的操作,
包中的代码都编译过了,读着实在难受,哪里有源码

@xiaohuoni
Copy link
Member

在umi的分支 umijs/umi#3084

@xiaohuoni
Copy link
Member

具体实现是 https://github.com/CJY0208/react-router-cache-route umi 分支上也是根据他的用例编写的

@inTheSun
Copy link

想咨询下,能把umi里面的CacheRoute中的when参数暴露出来吗?

@xiaohuoni
Copy link
Member

这个还存在嵌套路由的问题,后续修复了这个问题之后,会修改这个入参。
@CJY0208

@inTheSun
Copy link

这个还存在嵌套路由的问题,后续修复了这个问题之后,会修改这个入参。
@CJY0208

谢啦

@xiaohuoni
Copy link
Member

这个方案暂时废弃了,请使用umi-pluin-keep-alive

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

No branches or pull requests

3 participants