-
Notifications
You must be signed in to change notification settings - Fork 173
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
[RFC] AppRoute、AppRouter 与 registerMicroApps 参数对齐 #299
Comments
部分 API 最好看下使用场景,比如 AppRouter 上提供 onActiveApps 是不是没必要,目前默认应该只会渲染一个 App,用 onAppEnter 的周期是否就可以满足 |
|
activePath 匹配多个微应用与 AppRouter 单独提一个 rfc 来处理,现有逻辑保持不动 |
This was referenced Jun 16, 2021
Merged
Merged
更新:
|
maoxiaoke
added a commit
that referenced
this issue
Aug 10, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
概述
AppRoute、AppRouter 与 registerMicroApps 参数对齐
背景
目前 AppRoute、AppRouter 接收的参数 和 通过 api 方式 有部分参数存在未对齐的地方,对用户的使用造成困扰。
方案设计
AppRouter 缺失的参数
4. onActiveApps以上参数均在 AppRouter 中新增
start 缺失的全局配置
start 新增 basename 参数
AppRoute 和 appConfig 不一致的参数
path 字段标记为 deprecated,推荐使用 activePath。activePath 的类型如下:
兼容模式下:
在 activePath 存在匹配多个微应用的场景,兼容模式下:
2. basename标记为 deprecated,推荐使用activePath: ActiveFn
实现。build-plugin-icestark 使用
onLoadingApp、onFinishLoading、onError、onActiveApps 均可在 Framework 获取。
其他
相关 issue + 文档更新
#297
#209
The text was updated successfully, but these errors were encountered: