问题
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