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
问题的具体描述
同时在page1和page2,异步请求设置setData设置type属性,子应用只能接收到一个type page1 microApp.setData("sub-app", { type: "auth", payload: "授权码", }); page2 microApp.setData("sub-app",{ type: "account", payload: "登陆账号详情", };
page1 microApp.setData("sub-app", { type: "auth", payload: "授权码", }); page2 microApp.setData("sub-app",{ type: "account", payload: "登陆账号详情", };
改成同时在page1和page3,异步请求设置setData设置不同的key,会导致之前设置的旧数据还在
https://github.com/xian107/microApp_data
-micro-app版本:^1.0.0-rc.10 -主应用前端框架&版本: react ^18.3.1 -子应用前端框架&版本:react ^18.3.1 -构建工具&版本:webpack
The text was updated successfully, but these errors were encountered:
数据传递问题也同样遇到了,这项目的issues不是直接被关闭就是没人回复。。。
Sorry, something went wrong.
timhub66
No branches or pull requests
问题描述
复现步骤
同时在page1和page2,异步请求设置setData设置type属性,子应用只能接收到一个type
page1 microApp.setData("sub-app", { type: "auth", payload: "授权码", }); page2 microApp.setData("sub-app",{ type: "account", payload: "登陆账号详情", };
改成同时在page1和page3,异步请求设置setData设置不同的key,会导致之前设置的旧数据还在
复现仓库
https://github.com/xian107/microApp_data
环境信息
-micro-app版本:^1.0.0-rc.10
-主应用前端框架&版本: react ^18.3.1
-子应用前端框架&版本:react ^18.3.1
-构建工具&版本:webpack
The text was updated successfully, but these errors were encountered: