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

使用keepalive时,当点击链接进入A子应用时,在A子应用还没加载完成时,快速点击其他链接进入其他子应用,地址栏路由会乱。 #1426

Closed
zyf540860996 opened this issue Oct 29, 2024 · 3 comments
Labels
Need Reproduction 需要复现步骤

Comments

@zyf540860996
Copy link

问题描述

问题的具体描述

使用keepalive时,当点击链接进入A子应用时,在A子应用还没加载完成时,快速点击其他链接进入其他子应用,地址栏路由会乱。
感觉像异步问题,后面比前面的加载快,前面的把地址给顶掉了
因为每个应用的加载时长不一样,有的慢有的快,

去掉keepalive就不会有这问题,但是keepalive真的很需要

复现步骤

1.加载子应用A时,快速点击其他应用链接

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-rc.13
  • 主应用前端框架&版本:vue2
  • 子应用前端框架&版本:vue3
  • 构建工具&版本:vite
@zyf540860996
Copy link
Author

image

第一个还在渲染的时候,马上触发另一个子应用渲染,就会出现,能不能像请求一样,能取消掉之前的未渲染完成的

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

github-actions bot commented Nov 1, 2024

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

@github-actions github-actions bot closed this as completed Nov 9, 2024
Copy link

github-actions bot commented Nov 9, 2024

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

2 participants