Replies: 1 comment 2 replies
-
Can you put it in a demo and spend some time formatting the code to be easier to read? I'm not sure what On load, you have |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi
assume the code :
then html
and
so , when i launch , the whatisit() of the x-init
=>this.myArray['goodKey'] give undefined
=>this.myArray give the proxy but with all the array in the target
if i clic on the x-component button ,
=>this.myArray['goodKey'] give the good value of this key and the array structure (without proxy)
note: i tryed x-init="() => { whatisit() }" or x-init=" $nextTick(() => { whatisit() })"
i can't understand why do i get a proxy (even jsonified) object with all data but i can't access one key
What do i miss ?
thank you
Beta Was this translation helpful? Give feedback.
All reactions