Is there a way to access a Vue 3 instance when I am not aware of the variable name that holds this instance? I need to be able to execute a function from a specific component.
Upon typing $0.__vue_app__
in the console (Chrome Developer Tools), I can see the instance data. How can I use this information in my JS file?
console.log($0)
would naturally return undefined.
What approach should I take in this situation?