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

react-router-cache-route在umi框架里怎么使用啊 #41

Closed
hzcdt opened this issue Aug 29, 2019 · 4 comments
Closed

react-router-cache-route在umi框架里怎么使用啊 #41

hzcdt opened this issue Aug 29, 2019 · 4 comments

Comments

@hzcdt
Copy link

hzcdt commented Aug 29, 2019

在之前dva-cli脚手架生成的框架里,有一个可以由我们自定义配置的router.js,所以我们可以import react-router-cache-route去配置缓存路由,但是在umi里不管是约定式路由还是配置的路由,其最终生成有效的路由文件的过程都是框架自己做的,我该在哪一步去引入 react-router-cache-route配置缓存路由呢?

@CJY0208
Copy link
Owner

CJY0208 commented Aug 29, 2019

我需要研究一下,还没用过 umi

@CJY0208
Copy link
Owner

CJY0208 commented Aug 30, 2019

看了一下文档,似乎确实是没有下手之处,目前需要等待 umi 的兼容

@xiaohuoni umi 的同学已经在尝试增加 CacheRoute 了

进度在 umijs/umi#3084 中,可以关注此处

@CJY0208
Copy link
Owner

CJY0208 commented Aug 30, 2019

feature issue 为 umijs/umi#3091

@hzcdt
Copy link
Author

hzcdt commented Aug 30, 2019

@CJY0208 这效率杠杠的,希望umi能兼容一套路由缓存的方案

@hzcdt hzcdt closed this as completed Aug 30, 2019
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

2 participants