gaspoute / vue-devtools-select

Small example to show a bug in the vue-devtools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vue-devtools-select

Small example to show a bug in the vue-devtools (3.0.4)

How to install

Install the dependencies

yarn install

Watch the files and start the HTTP server

yarn run dev

How to reproduce the bug

  • Open a browser and go to http://localhost:3000.
  • Open the vue-devtools and select the Vuex tab.
  • Once the "setItems" mutation is committed, select an item, e.g. Alice.
  • Once the "selectItem" mutation is committed, travel to the "setItems" mutation.

We can see that several "selectItem" mutations were committed instead putting the "setItems" mutation active.

This bug doesn't occur when a default item is selected, for example, setting the selectedItemId to 1 instead of null.

About

Small example to show a bug in the vue-devtools


Languages

Language:JavaScript 99.8%Language:Vue 0.1%Language:HTML 0.1%