Whether the Vue child component can get the value passed asynchronously from the parent component in the lifecycle update to update the view

clipboard.png

clipboard.png

clipboard.png

clipboard.png Child component figure 1
I initialize the value of recordDataList in the parent component data, get the value from the server in mounted to reassign it, bind it with props in the child component, and the child component wants to render the updated value of the parent component. Can I get the value in the undate hook of the child component to update the view?

Mar.07,2021

this does not need to be re-assigned manually, as long as the props is changed in the parent component, it will be automatically passed to the child component, so that the application of props in the child component will be automatically updated to the latest value.


this can have a serious problem.
that is update. After you reassign the value, it will cause update and then an infinite loop.
so let's use props

Menu