Vue-devtools: Edit State Properties in Tree View

Created on 5 Feb 2016  路  8Comments  路  Source: vuejs/vue-devtools

Do you plan to have a feature to edit the state right there in the app / tree view, right now it just displays the values but you can't edit them.

accepted proposition feature request

Most helpful comment

What is the current state? :)

All 8 comments

I have started playing about with implementing this:
https://github.com/dansullivan86/vue-devtools/tree/editable

The basics work, however I am having issues with the flush event. Essentially I have created a loop, by updating the app data the app triggers a flush event, this then triggers an update-data event which updates the app data again. Currently I have an ultra hacky settimeout which breaks the loop but we still trigger an error:
[Vue warn]: Duplicate value found in v-for="field in target.state": {"type":"computed","key":"awww","value":{"a":{"b":{"c":123}}}}. Use track-by="$index" if you are expecting duplicate values.

Is anyone else with more experience able to chime in here?

Hey @dansullivan86 - really appreciate the effort! I'll take a look when I get a chance.

:+1: Great. I am also eager to see vue-devtools + vuex integration... :smiley:

@yyx990803 can this issue be closed?

The ability to change VueX data (or component data) would be a great addition. Would make testing multiple states much easier.

that's interesting

Ran into some bugs today that being able to edit the data from the dev tools would have been much quicker for testing and resolution.

What is the current state? :)

Was this page helpful?
0 / 5 - 0 ratings