当前位置:网站首页>uniapp parent component uses prop to pass asynchronous data to child components
uniapp parent component uses prop to pass asynchronous data to child components
2022-08-08 18:41:00 【yyhh~】
In the parent-child component, the rendering relationship is that the mounted of the child component is rendered first, and then the mounted of the parent component is rendered, so the asynchronous data in the parent component is passed to the child component, which will cause the child component to not get the parent component asynchronouslydata situation.
So we can adopt a simple method. In the parent component, only after the asynchronous data is successfully obtained, the child component will be rendered and this problem will not occur!!!!!!!
Thanks to the following bloggers:
边栏推荐
猜你喜欢
随机推荐
Neo4j: 1. CQL statement
echart 股票数据分析 开发备忘录
十六、一起学习Lua 文件 I/O
浅谈C语言简单实现二分查找
js切换新闻列表样式
ABAP 报表中如何给报表的输入参数增添 F4 Value Help 试读版
数据压缩和归档(二)、zipfile
重读GPDB 和 TiDB 论文引发的 HTAP 数据库再思考
HCIP第十三天作业——综合实验
Laravel 队列消费实例和定时任务添加任务消费
Fortinet全新云原生保护产品上线亚马逊云科技平台
QT With OpenGL (Bloom) (Bloom)
栈指针&& 帧指针详解
FTP服务初探
CF533B(树形dp+转移技巧)
MySQL:Update高并发下变慢的案例及其涉及的特性
阿里巴巴云原生大数据运维平台 SREWorks 正式开源
量子力学奇妙之旅-铁磁性来由/双态系统
CS231n: 11 Generative Models
js温度计插件自定义数值