Name the Rules and Demands that define When Render

2019-09-17 15:12发布

问题:

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.