Why is my array prop not being passed to the child component properly? #9337
Unanswered
Christoph-Harms
asked this question in
Help/Questions
Replies: 1 comment
-
You have a typo. It should be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a parent component that makes API calls to a backend and is then supposed to update its child:
As you can see, i have assigned a default value to the

game
field of thedata
object just to make sure it is actually passed to the child. And this seems to be working fine:After clicking the "New Game" button, the server responds with a new game that gets written to

data
. This also works:However, this array is then not passed to the child component correctly:

Now I'm a backend dev and in no way any "good" with Vue or UI development in general, so I'm sure I'm doing something wrong that's very stupid here, but I just can't seem to find out what. If anyone could push me in the right direction I'd be very thankful.
Beta Was this translation helpful? Give feedback.
All reactions