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

场景询问: 主应用(umi3+plugin-qiankun),子应用非umi项目采用原生qiankun注册几个钩子函数,主应用无法识别 #554

Open
ChenYCL opened this issue Mar 15, 2021 · 4 comments
Labels
need reproduction pls provide a minimal reproduction qiankun

Comments

@ChenYCL
Copy link

ChenYCL commented Mar 15, 2021

主应用正常使用umi方式通过路由config.ts 和 routes.ts注册路径, 子应用index.js写入

//子组件协议
export async function bootstrap(props) {
  console.log("222222");
}
export async function mount(props) {}
export async function unmount(props) {}

这个情况是否支持呢,还是必须主应用换成qiankun 原生方案

@ChenYCL ChenYCL changed the title 场景询问: 主应用(umi3+plugin-qiankun),子应用非umi项目采用原生qiankun注册几个狗子函数,主应用无法识别 场景询问: 主应用(umi3+plugin-qiankun),子应用非umi项目采用原生qiankun注册几个钩子函数,主应用无法识别 Mar 15, 2021
@kuitos kuitos added the need reproduction pls provide a minimal reproduction label Mar 18, 2021
@ChenYCL
Copy link
Author

ChenYCL commented Mar 22, 2021

image
是这样的,我的主应用了umi和@umijs/plugin-qiankun,子应用采用非umi体系,并且采用qiankun,而不是@umijs/plugin-qiankun,这种场景无法建立链接,是否设计上就必须全部使用@umijs/plugin-qiankun

@luoyifanff
Copy link

子应用并且采用qiankun? 怎么理解。qiankun官网上有对非umi或非webpack项目的解释

@ChenYCL
Copy link
Author

ChenYCL commented Jun 9, 2021

当前是这样的 A项目 采用umi-qiankun搭建(路由和microApp方式注册应用B),B项目采用qiankun原生方式进行挂载注册,经过调整倒是通了,不过通信会导致一些死循环

@Lyan0505
Copy link

这个解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduction pls provide a minimal reproduction qiankun
Projects
None yet
Development

No branches or pull requests

5 participants