Replies: 1 comment
-
document.querySelector('[x-data]')._x_dataStack[0] This is what you are thinking of, but keep in mind that this is not the recommended way of getting data from a component. The recommended way is either using $store or via custom events with $dispatch |
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.
-
Hello ,
I am trying to access x-data from an external Scope but document.querySelector('[x-data]').__x.getUnobservedData() return undefined if I use a simple div . Actually, it only works if I use a
Beta Was this translation helpful? Give feedback.
All reactions