vuejs / devtools

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools.vuejs.org/
MIT License
1.7k stars 122 forks source link

Events timeline: every event displayed multiple times #648

Open hakanedison opened 3 weeks ago

hakanedison commented 3 weeks ago

This happens under both Keyboard and Component events (while Mouse show no events whatsoever).

Example when hitting the A key once:

image

The first two events are identical keydown events, then two identical keypress events and lastly two identical keyup events.

Another example with component events:

2024-10-29_14h00_59

Also, do the different colors have any specific meaning?

hakanedison commented 3 weeks ago

Never mind, it was me 😞

After restarting Chrome (and thereby also Vue devtools) it worked as expected.

hakanedison commented 3 weeks ago

Wait a minute. It just happened again. Every event displayed twice. I tried disabling Chrome DevTools (F12) en re-enabling it again (F12). Now every event is displayed 12 (!) times. There's something going on.

2024-10-30_09h22_36

Things tried:

hakanedison commented 3 weeks ago

Just found a way to make it work:

After restarting the Vite development server, every event is only displayed once, as it should be (until I reopen Chrome DevTools). 🎉

My script in package.json:

"scripts": {
   "dev": "SET NODE_ENV=development && vite --force -d"
}

This lead me to the (now) quite obvious conclusion: Just reloading the page also fixes it. (How did I miss to test that one!?)