qiankun icon indicating copy to clipboard operation
qiankun copied to clipboard

子应用是nextjs,路由跳转发生死锁

Open seainhand opened this issue 4 years ago • 4 comments

可用复现代码如下 https://github.com/seainhand/qiankun-next

主项目使用qiankun 子项目使用nextjs,使用next/router或者next/link进行跳转,如果跳转的地址还在子项目的activeRule里,就会发生无限更新,同时所有的withrouter的组件都会一直更新,无论是next的withrouter还是react-router的withrouter

不知道是配置有问题还是不兼容

把这个react16启起来从/home这个地址点击react16,也会一直更新,然后会报很多warning

seainhand avatar Feb 04 '21 08:02 seainhand

即使willUnmount時把microApp unmount()都沒用 還是會一直rerender

oscarwonghk01 avatar Mar 11 '21 09:03 oscarwonghk01

Qiankun requires exporting lifecycle methods that use ReactDOM to render and unmount. Is this even possible with next.js?

hvdson avatar Jul 07 '21 23:07 hvdson

请问这个解决了嘛

Vera1128 avatar Jul 14 '22 03:07 Vera1128

你好 请问解决了吗😂

zoudingyi avatar Nov 20 '23 08:11 zoudingyi