Replies: 6 comments 12 replies
-
Well, the second one doesn't work because it has its own The first is quite curious since that should work... What if you remove the |
Beta Was this translation helpful? Give feedback.
-
https://codepen.io/SimoTod/pen/vYrpqgw?editors=1111 it seems to work. |
Beta Was this translation helpful? Give feedback.
-
@ekwoka , you're right about the props... it works properly as intended. I'm having a hard time replicating the error in a simple way, cause i'm implementing it n some php backend. I'll try to do it in a better way, still i had to do some bad hack like init(){
this.local=this.parent
}
get getterAction(){
return this.local.....
} otherwise it doesn't work. Also it seems that on stackblitz and similar i cannot see the error, while it appears locally. |
Beta Was this translation helpful? Give feedback.
-
yep it seems that the error is fired only when the Alpine devtools is on, otherwise i got no error. Still it doesn't seems to work. I'll try to replicate the structure and see what's happening. |
Beta Was this translation helpful? Give feedback.
-
Aaaaaaaaaaand i correct myself again.... it works as intended, simply the devtools gave me an error and i got stuck with it, cause i could not understand what was happening. So it's a devtools problem. |
Beta Was this translation helpful? Give feedback.
-
I can confirm is a devtools bug. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use a getter that have to access an outer scope variable (as seen in this pr #2128)
It seems to work fine but not with nested data. Unless i print the getter in the page with an x-text, i get an "undefined" error, like in this example
The alert will print the correct number, but the console is giving me some error.
Using the getter for something that doesn't need to be printed but it has to be used later in the code doesn't work, like this example
Beta Was this translation helpful? Give feedback.
All reactions