The parent component passes a parameter to the child component. After receiving the parameter, the props cannot use the data.
Vue version
3.2.25
Link to minimal reproduction
Steps to reproduce
just Props pass parameter problem
What is expected?
The parameters received by props are available
What is actually happening?
Props can use console.log to show that there is a goods property in it, but it cannot print goods directly
System Info
No response
Any additional comments?
The parent component passes a parameter to the child component. After receiving the parameter, the props cannot use the data.
Props can use console.log to show that there is a goods property in it, but it cannot print goods directly I found that using the Watch listener solved this problem, but it was clearly not the approach we wanted
This reproduction does not run as it tries to import a non-existant store. please note that a runnable reproduction is required.
My suspicion would be that your parent passes data only on a second re-render, after the store has fetched it.
You can ask the community for guidance on how to work best in this scenario.