Comments (1)
因为子应用是异步渲染的,所以可能产生数据先发送,子应用之后才监听的情况。这时有两种方式解决:1、设置addDataListener第二个参数为true window.microApp?.addDataListener(dataListener: Function, autoTrigger?: boolean) 2、window.microApp?.getData()
from micro-app.
Related Issues (20)
- 主应用vue2 当子应用为vite时候,控制台加载异常会递归出大量的iframe 标签 HOT 9
- 关闭虚拟路由,浏览器点击后退,地址栏路由错误页面也没出来
- 应用没有打开的时候主应用怎么切换到子应用下的某个菜单 HOT 3
- 希望不要移除 配置项disable-memory-route HOT 1
- Cannot read properties of undefined (reading 'location') HOT 1
- 使用renderApp方法调用报错 HOT 1
- 求解:nginx配置下页面F5刷新后只有子应用的页面,主应用的导航都没有了 HOT 4
- 使用renderApp渲染子应用的时候,keepAlive没效果 HOT 1
- 请问 子组件加载较大的组件,如何在页面显示loading 层呢 ? HOT 2
- Firefox 子应用Antd 5 Select下拉选项和Tooltip无法展现到正确位置
- 基座应用给某个子应用连续发送两次数据,子应用只能监听到一个 HOT 6
- 主应用使用富文本组件回车后,滚动条位置会移到顶部 HOT 5
- 为什么关闭disable-memory-router的情况下pathname后面会多了条“/” HOT 1
- 子应用是Vite+React,无法正常展示,@react-refresh报错 HOT 5
- 主应用和子应用同时引用bootstrap,一些组件无法正常操作 HOT 4
- 主应用会重复请求静态资源并取消 HOT 3
- 有注意到1.0-rc6版本路由在使用上有了新的调整,但文档未同步更新使用方式 HOT 1
- 通过umi4创建的项目,切换应用后渲染内容被缓存
- 主应用跟子应用引用相同文件(js/css)问题 HOT 6
- start、renderApp特殊case文档缺失 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro-app.