Skip to content

fix: should dispatch error event when mount error #1581

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

mansonchor
Copy link

@mansonchor mansonchor commented May 13, 2025

现状:error 这个生命周期事件,只有在 fetch html 入口有问题才会 dispatch,不符合预期

应用场景:

  1. 如子应用的 window.mount 发生异常,整个 <micro-app> 无法渲染卡住,但是主应用收不到通知
  2. 另外还有一种场景待解决,iframe 沙箱模式加载子应用,fetch html 成功,但是子应用某些静态资源加载失败(可能是逻辑原因或网络原因),这时整个加载过程也会卡住,主应用收不到通知

@mansonchor
Copy link
Author

no ci test auto run?

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

Successfully merging this pull request may close these issues.

1 participant