You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix dom not change while data change
它在watch侦测到data变化后,调用了setTimeout来执行数据加载,这会在事件循环中,将相关函数放入宏任务队列中,会导致dom渲染的时间点结束后才执行数据加载(虽然vue的dom更新和浏览器的渲染流程难以调试证明,但是实际表现确实如此)。
可以看我提的issue来解决问题。
:data="dataSource"
dataSource一直在变化,是proxy对象,页面没有变化
The text was updated successfully, but these errors were encountered: