We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
生产可能已经发布了新的子应用,但是用户由于已加载过子应用,导致无法获取到更新后的子应用 且子应用在部分js应网络问题加载失败后,无法通过再次加载子应用来提供访问重试的方案
建议提供彻底卸载方法来移除已加载过的子应用,能让子应用像首次加载子应用一样的流程
The text was updated successfully, but these errors were encountered:
每个加载完毕的微应用 都有生命周期函数可以执行
销毁的函数: unmount()
// 加载微应用 let microApp = loadMicroApp({}) // 销毁微应用 microApp.unmount()
Sorry, something went wrong.
每个加载完毕的微应用 都有生命周期函数可以执行 销毁的函数: unmount() // 加载微应用 let microApp = loadMicroApp({}) // 销毁微应用 microApp.unmount()
如果因为网络问题没有加载成功微应用如何重试?
可以先查询微应用是否加载成功 再确定是否需要卸载
if (microApp.getStatus() == 'MOUNTED') { microApp.unmount() }
No branches or pull requests
Background
生产可能已经发布了新的子应用,但是用户由于已加载过子应用,导致无法获取到更新后的子应用
且子应用在部分js应网络问题加载失败后,无法通过再次加载子应用来提供访问重试的方案
Proposal
建议提供彻底卸载方法来移除已加载过的子应用,能让子应用像首次加载子应用一样的流程
The text was updated successfully, but these errors were encountered: