I’m fairly new to Vue, so hopefully I’m asking this the correct way.
I want to emit an event and have a different component (NOT the parent) listen for that emit and do something. I know this was possible with Vue 2 with $on, but not possible in Vue 3.
I’ve tried reading Vue 3 docs, but they only talk about parent->child and child->parent not child->child. I also looked in mitt https://github.com/developit/mitt, but that doesn’t seem to work in Ionic Vue.
Has anybody run into this with Ionic Vue and know a solution?
thats cool, , sort of weird to skip around the infrastructure… now I am trying to overcome event problems too… I can fire my (on ) handler, but I need to manipulate a ui component (change its background), but I cannot for the life of me determine how I get thru refs or ‘this’
I provided my own similar package to try to get into context, but haven’t been successful…
in the above
console.log("test-event", payload);
can u replace that with some content access ? like