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

如何在KeepAlive包裹的业务组件内取到,外层 通过dva connect 管理的全局状态?

Open BluesVN opened this issue 2 years ago • 0 comments

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

BluesVN avatar Oct 10 '22 08:10 BluesVN