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结合下吗 #47

Closed
johanazhu opened this issue Oct 12, 2019 · 10 comments
Closed

react-router-cache-route 能和umi结合下吗 #47

johanazhu opened this issue Oct 12, 2019 · 10 comments

Comments

@johanazhu
Copy link

俊哥儿,react-router-cache-route 能和umi结合下吗?
或者给个思路

@Vision010
Copy link

Vision010 commented Oct 12, 2019

你应该多看看umi的issues,Issues中已经对此做出了方案umijs/umi#3091

@johanazhu
Copy link
Author

没错,现在还没合并xiaohuoni 的分支

@CJY0208
Copy link
Owner

CJY0208 commented Oct 12, 2019

umi 的路由管理被包起来了,要使用 CacheRoute 的话只能等 umi 支持,在这之前如果想要即刻使用缓存功能,可以试试我新写的库 react-activation 不依赖路由的 KeepAlive 方案,不需要等 umi 支持

@johanazhu
Copy link
Author

好的,我试试看

@xiaohuoni
Copy link

@CJY0208
Copy link
Owner

CJY0208 commented Oct 25, 2019

https://www.npmjs.com/package/umi-plugin-cache-route

@johanazhu 推荐小火尼的渐进式方案

@xiaohuoni
Copy link

...@CJY0208 我不叫小火泥,我是小虎 oni

@CJY0208
Copy link
Owner

CJY0208 commented Oct 28, 2019

...@CJY0208 我不叫小火泥,我是小虎 oni

其实你已经介绍了遍插件,我又重复了,目的很明显,只是为了说一下这个给你起的外号~

顺便问一下,umi keepalive 的覆盖操作是不可逆的吗?

@xiaohuoni
Copy link

umi keepalive 覆盖操作不可逆,且是临时性的。重新安装任意模块,就会被重置。

@flyingFlowers
Copy link

使用云构建时,如何应用于生产环境

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

5 participants