Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qiankun父应用进入微应用,微应用的路由一直作用在夫应用上 #970

Closed
HLDipsy opened this issue Jun 14, 2024 · 2 comments

Comments

@HLDipsy
Copy link

HLDipsy commented Jun 14, 2024

父应用进入微应用,微应用的路由一直作用在夫应用上,先匹配微应用的路由,在匹配父应用的路由
父应用: umi3 + @umijs/plugin-qiankun
父应用config配置:
fe67cf40261dc1c19fbdd8ee96fbd27
父应用路由配置:
fbfca6ce4fb576eeaa8c6b5c76be4fe

微应用:vite+dva+react,使用 vite-plugin-legacy-qiankun
微应用入口文件:
3dfb490b61529539bd3577a72ade34c

报错:进入过微应用,微应用路由就会存在,跳转父应用的路由时,会提示路由404(子路由未匹配到父应用的路由),每进入一次提示就会累加一次,例如进入五次微应用,在点击父应用的路由,会提示报错五次路由404

@PeachScript
Copy link
Member

看描述路由 404 是微应用报的,和 @umijs/plugin-qiankun 应该无关,请自行检查实现,比如 unmount 是否正常销毁应用实例、lifecycle 是否正常工作以及 vite-plugin-legacy-qiankun(非 UmiJS 团队维护)是否如预期工作,issue closed

如果排查下来确定和 @umijs/plugin-qiankun 有关,可以补充最小可复现仓库,再重新 reopen

@PeachScript PeachScript closed this as not planned Won't fix, can't repro, duplicate, stale Jun 14, 2024
@HLDipsy
Copy link
Author

HLDipsy commented Jun 14, 2024

看描述路由 404 是微应用报的,和 @umijs/plugin-qiankun 应该无关,请自行检查实现,比如 unmount 是否正常销毁应用实例、lifecycle 是否正常工作以及 vite-plugin-legacy-qiankun(非 UmiJS 团队维护)是否如预期工作,issue closed

如果排查下来确定和 @umijs/plugin-qiankun 有关,可以补充最小可复现仓库,再重新 reopen

@umijs/plugin-qiankun 可以手动关闭子应用实例吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants