umi-plugin-keep-alive icon indicating copy to clipboard operation
umi-plugin-keep-alive copied to clipboard

<KeepAlive> for umijs base on react-activation

Results 32 umi-plugin-keep-alive issues
Sort by recently updated
recently updated
newest added

![image](https://user-images.githubusercontent.com/51192368/205001042-941dc5c1-3b87-43fa-b215-04f885d71c22.png) ![image](https://user-images.githubusercontent.com/51192368/205001305-48bee5e9-2991-4f83-9477-36b89ace328e.png)

`import { KeepAlive } from 'umi';` `export default () => ( );` ![image](https://user-images.githubusercontent.com/54438598/185323299-05a97a9c-be3b-4d7e-873b-1cde9f7edbf7.png) ![image](https://user-images.githubusercontent.com/54438598/185323404-cab503a7-ae8b-49c8-89a6-1da8b82d1094.png)

``` export default connect(({ global }: { global: any }) => ({ global, }))((props) => { return ( {/* keepalive 时 组件内如何拿全局数据 */} ); }); ```

直接报错。 ERROR in ./src/.umi/plugin-keep-alive/runtime.tsx

在pc上生效,在iphone的safari和微信内置浏览器均工作不正常

![image](https://user-images.githubusercontent.com/26358500/182316546-898830c2-2e89-4ede-9465-3fe0e5f896ba.png) 把/home路由的count加1,切换到/chart路由,再切回到/home,count又变成0了 ![image](https://user-images.githubusercontent.com/26358500/182316816-fb8390ab-4066-462f-aa36-7e7bbc6663ea.png)

api.addUmiExports 需要兼容 api.addEntryImports api.utils.Mustache 需要兼容 import { Mustache } from 'umi/plugin-utils';

![image](https://user-images.githubusercontent.com/39801991/106437439-4041ae00-64b0-11eb-9b18-5d2033aaa0e0.png) 这样写没问题吧?还需要在其他地方有配置吗?

使用了"umi-plugin-keep-alive": "^0.0.1-beta.31"插件,启动项目之后报TypeError: Cannot read properties of undefined (reading 'location') 错误! 使用keep-alive页面才报错 未使用keep-alive页面正常运行 node版本 : 16.13.0 14.15.4 12.18.3 上述node版本都试过 有时重新安装多次依赖本地开发环境页面正常运行,但是打包发布到线也是报TypeError: Cannot read properties of undefined (reading 'location') 错误! Umi Version: ^3.5.17...