devScripts.js:6523 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
in Unknown (at Provider.tsx:30)
in Unknown
@umijs/plugin-qiankun中所有需要用到qiankunModel.ts.tpl的版本都存在这个问题
由于
setModelState
这个函数没有在组件卸载的时候被销毁,导致内存泄漏会在切换应用的时候提示警告
我的建议是可以用useEffect来重置这个函数