react-activation icon indicating copy to clipboard operation
react-activation copied to clipboard

如何在使用KeepAlive的同时,拿到最新的 connect 全局状态管理数据

Open BluesVN opened this issue 2 years ago • 1 comments

用例:

export default connect(({ global }: { global: any }) => ({
  global,
}))((props) => {
  return (
    <>
      {/* 组件内无法 监听 global值的变化 */}
      <KeepAlive >
        <Demo {...props} />
      </KeepAlive>
    </>
  );
});

BluesVN avatar Oct 10 '22 07:10 BluesVN

印象中这个好像是 connect 本身的问题,有时间再看看

CJY0208 avatar Oct 28 '22 03:10 CJY0208