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

loadMicroApp 加载失败后,再一次执行,并不会重新发起http请求,而是直接报错 #1885

Closed
falseLuffy opened this issue Dec 22, 2021 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@falseLuffy
Copy link

What happens?

loadMicroApp 加载失败后,再一次执行,并不会重新发起http请求,而是直接报错

Mini Showcase Repository(REQUIRED)

暂无

How To Reproduce

将微应用服务停止 ,使用loadMicroApp 加载微应用,可以得到失败,然后将微应用重启,再次使用loadMicroApp 加载,此时不会发起新的请求,而是报错

Context

  • qiankun Version: 2.6.3
  • Platform Version:window10
  • Browser Version:Google Chrome 版本 96.0.4664.110(正式版本) (x86_64)
@ViavaCos
Copy link

所以,报错是什么,不能再次加载还是加载不到资源?感觉提供个报错信息可能更有利于解决问题。

@falseLuffy
Copy link
Author

所以,报错是什么,不能再次加载还是加载不到资源?感觉提供个报错信息可能更有利于解决问题。

不能再次发起请求。

@XSnowHoly
Copy link

我也碰到这个问题,qiankun 官方是否可以考虑优化一下手动加载失败后的重试机制?

@dangc9
Copy link

dangc9 commented May 12, 2022

你可以配置一个动态entry地址,比如 entry: http://localhost:8080/?timestamp=${new Date().getTime()}

@falseLuffy
Copy link
Author

你可以配置一个动态entry地址,比如 entry: http://localhost:8080/?timestamp=${new Date().getTime()}

这样每次执行loadMicroApp都会重新请求资源,效率将会大大降低

@kuitos kuitos added the bug Something isn't working label Mar 5, 2024
@kuitos kuitos added this to the 3.0 milestone Mar 5, 2024
@kuitos kuitos closed this as completed Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants