umi-plugin-keep-alive
umi-plugin-keep-alive copied to clipboard
<KeepAlive> for umijs base on react-activation
报错问题:  代码片段:   请问还可以通过什么办法进行清楚特定的页面缓存吗?
使用场景: 列表页缓存列表数据。跳转前设置when为true,然后通过histpry.push进行页面跳转 ```typescript const [keepAlive, setKeepAlive] = useState(false); const columns = [ { title: 'xx', render: ({id}) => redirect(id)}>click } ] function redirect(id: number | string) { setKeepAlive(true); history.push(`consumer/${id}`); }...