SaFrMo / vue3-boardgame

Vue 3 plugin for boardgame.io
5 stars 1 forks source link

accessing G property #3

Closed anurat closed 2 years ago

anurat commented 2 years ago

Not sure if this is related to this vue plugin, but need some help.

image

G {{ G }}
<br>
G.cells {{ G.cells }}

When I tried to print out G, it showed correctly with cells property, but when I tried to access cells, I got undefined. Strange behavior, do you know what's wrong here?

anurat commented 2 years ago

Okay, so It's gotta be G.value.cells instead. Sorry about this.

SaFrMo commented 2 years ago

Haha no worries, I did the exact same thing! 😄