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

microApp.addDataListener 不触发 #1409

Closed
mathYang1224 opened this issue Oct 16, 2024 · 5 comments
Closed

microApp.addDataListener 不触发 #1409

mathYang1224 opened this issue Oct 16, 2024 · 5 comments
Labels
Need Reproduction 需要复现步骤

Comments

@mathYang1224
Copy link

Describe the bug

A clear and concise description of what the bug is.
microApp.addDataListener 不触发偶现, name 想同情况下 列表页跳详情页再跳回列表页不触发

To Reproduce

// 主应用
// name 为变量
microApp.setData(name, data)
// 子应用
// 监听基座下发的数据变化
window.microApp.addDataListener((data) => {
// 当基座下发跳转指令时进行跳转
if (data.path) {
router.push(data.path)
}
})

Environment

  • micro-app version: "@micro-zoe/micro-app": "v1.0.0-rc.5",
  • framework of base app & version:
  • framework of sub app & version:
  • Build tools & version:
@mathYang1224
Copy link
Author

有没有什么补偿方案,长期使用这个版本的微前端框架,最好不升级

@mathYang1224
Copy link
Author

子应用跳转详情页,再在主应用点击到列表页就不会跳转

@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Oct 16, 2024
Copy link

Hello @mathYang1224. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @mathYang1224, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

@wiskewu
Copy link

wiskewu commented Oct 18, 2024

#1356

Copy link

Since the issue was labeled with Need Reproduction, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

3 participants