irychen / keepalive-for-react

React KeepAlive is a component that can cache the state of the component and reuse it when needed.
MIT License
162 stars 32 forks source link

qiankun兼容 #14

Closed jinxiangqiang closed 3 weeks ago

jinxiangqiang commented 2 months ago

当{outlet}为qiankun子应用时,会导致跳转无法显示内容

jinxiangqiang commented 1 month ago

我创建了个demo,dev分支,qiankun跳主应用页面后再进子应用缓存失效,且在子应用间切换只能渲染其中一个 https://github.com/jinxiangqiang/qiankunDemo/tree/dev

irychen commented 3 weeks ago

建议采用局部缓存方案,不要使用路由模式,没写过qiankun这个微前端框架,不太熟悉