cklmercer / vue-events

Simple event handling for Vue.js
MIT License
234 stars 27 forks source link

Events don't show up in Vue debugger #17

Open dvatp opened 6 years ago

dvatp commented 6 years ago

I had to take a break from my project for few months. I'm back at it now and recently accepted an upgrade to Vue from 2.3.4. to 2.5.7.

Since that time I've noticed a few things, one of which is relevant to vue-events. I can't seem to see the events generated through vue-events in the Vue debugging extension for Chrome anymore (on the Events tab). Not sure why. I have verified that the events ARE being emitted and received by various components, so vue-events appears to be working -- it's just that there is no way to see the events or their payloads in the debugger anymore.

Not sure this is a problem with vue-events, but I'm curious if anyone else working with vue-events and Vue 2.5.7 or later can see events generated by vue-events in the debugger.

cklmercer commented 6 years ago

Interesting.. I haven't run into this myself, but it could have to do with the way the "event bus" is scoped. It's not actually loaded/referenced as a component anywhere in your component tree. I'm slammed at the moment, but I'll do some research and dig into this when I get a break.