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

[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.

Open 781574155 opened this issue 5 months ago • 0 comments

当使用umi max的国际化时,如果用KeepAlive标签包裹会报错:

export default () => (
  <KeepAlive saveScrollPosition="screen" name="/file-manage:谛听">
    <Page />
  </KeepAlive>
);

如果不用KeepAlive,正常显示:

export default () => (
    <Page />
);

此外,使用KeepAlive后,useModel('@@initialState');也使用不了

781574155 avatar Jul 23 '25 08:07 781574155