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

网络或其他原因导致子应用加载失败,无法手动重新加载 #1990

Closed
xioozq opened this issue Mar 3, 2022 · 4 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@xioozq
Copy link
Contributor

xioozq commented Mar 3, 2022

What happens?

使用loadMicroApp加载子应用,无法手动重新加载

Failed to load the subapplication using loadMicroApp and cannot be manually reloaded

复现步骤,错误日志以及相关配置

  1. 关闭网络
  2. 调用loadMicroApp加载子应用
    3 加载失败后,没有可供重试的API
  3. 此时卸载掉旧的实例再重新调用loadMicroApp, 并不会真的发出请求,而是把刚才加载的错误重新抛出了

  1. Shut down the network
  2. Call loadMicroApp to load subapplications
    3 No API is available for retry after the loading fails
  3. Uninstalling the old instance and calling loadMicroApp again does not actually issue the request. Instead, it rethrows the error that was just loaded

相关环境信息

  • qiankun 版本 2.6.3
  • 浏览器版本: 98.0.4758.109
  • 操作系统:mac 12.1
@w578202450
Copy link

我也遇到了这个问题,大佬们能不能给个方案

@xioozq
Copy link
Contributor Author

xioozq commented Aug 11, 2022

我也遇到了这个问题,大佬们能不能给个方案

修改源码, 跳过缓存 @w578202450

@yinran100
Copy link

我也遇到了这个问题,大佬们能不能给个方案

修改源码, 跳过缓存 @w578202450

哪段源码

@xioozq
Copy link
Contributor Author

xioozq commented Apr 15, 2023

我也遇到了这个问题,大佬们能不能给个方案

修改源码, 跳过缓存 @w578202450

哪段源码

src/api.ts > memorizedLoadingFn

@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

4 participants