Name the Rules and Demands that define When Render function must Run?

百般思念 提交于 2019-12-11 17:13:59

问题


When and why Render function will re-render vue component. May be some one know some Rules and Demands to data?


回答1:


I think you are looking for this: Reactivity in Depth - https://vuejs.org/v2/guide/reactivity.html

If you are more of a visual person... then the lifecycle diagram might be easier to understand - https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram

Basically any time a reactive data property changes... Vue will re-render the component.



来源:https://stackoverflow.com/questions/43459106/name-the-rules-and-demands-that-define-when-render-function-must-run

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!