Comments (1)
因为子应用是异步渲染的,所以可能产生数据先发送,子应用之后才监听的情况。这时有两种方式解决:1、设置addDataListener第二个参数为true window.microApp?.addDataListener(dataListener: Function, autoTrigger?: boolean) 2、window.microApp?.getData()
from micro-app.
Related Issues (20)
- v1.0.0-rc.5版本下addEventListener事件挂载失效问题 HOT 2
- 浏览器点击返回时地址出现错误 HOT 3
- 主应用中嵌套子应用,子应用又嵌套主应用,即主子应用来回嵌套 有什么好的方案 HOT 2
- pure模式子应用不渲染 HOT 2
- angular1.0 unmouted卸载重新进入时会有问题app already bootstraped with this element.
- 子应用通过获取来自主应用的数据来触发操作,因为数据会缓存合并,会导致子应用的新增跟清除同时触发。 HOT 3
- 关于Modal组件挂载位置问题 HOT 3
- 主应用跳转子应用的页面,子应用内部使用router.push,出现以下警告 HOT 1
- 子应用使用vue2+webpack,访问接口报错Access to XMLHttpRequest at 'http://localhost:7080/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status. HOT 3
- 生产环境,父子项目部署在同源地址。子项目首次加载的时候,路由地址偶尔会错误地重定向到父项目的当前的路由地址 HOT 3
- 跳转页面后,浏览器URL不会改变 HOT 4
- 官网的demo dev/chidlren 下的vite4 子应用为啥跑不起来,因为这个应用引用了 uno.css 。去除import "uno.css"; 这段代码就可以跑起来。我自己的项目也是这样 HOT 4
- 子应用重新渲染失败。
- 主应用无法访问子应用中的静态资源 HOT 1
- pure模式下,子应用路由回退无效并影响到主应用路由 HOT 2
- 内存泄露问题
- 当前停留在子应用页面,点击浏览器回退路由返回错误 HOT 1
- 在micro-app的子应用中,在登录页面使用Link href="/#/register" 不能跳转到注册页面,而使用 navigate('/register')可以跳转过去,这样老项目引入到微服务都得改造把<Link href >改成navigate(“”“”) HOT 2
- 求紧急修复:1.0.0-rc.4版本后,子应用为vite时无法获取到子应用自身的localtion HOT 1
- 两个子应用都是vue-router4.x,初始化及某个子应用内部返回跳转的时候,另外一个子应用也会触发路由守卫,导致返回异常 HOT 2
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.