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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c433-e84c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c433-e84c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?