pinia icon indicating copy to clipboard operation
pinia copied to clipboard

Debugging information on Vue 2

Open posva opened this issue 4 years ago • 5 comments

Currently, the debugging information of events in the Timeline has almost nothing on Vue 2. While tha events array doesn't exist in Vue 2, there should be some kind of fallback to display at least some information like the previous values and current values for primitives.

Discussed in https://github.com/posva/pinia/discussions/857

Originally posted by Djaler November 30, 2021 With the same code image mutation info in devtools in Vue 3 looks like image but in Vue 2 it's just image which is not so useful for debugging

posva avatar Nov 30 '21 08:11 posva

I think the only way we can do this is by saving previous store state deep clone

Djaler avatar Dec 14 '21 20:12 Djaler

Any updates on this topic? Do we know when the feature could be implemented? Keep up the good work 😄

theolavaux avatar Mar 15 '22 11:03 theolavaux

I feel this is an important functionality that is currently missing from DevTools, any deadlines for its implementation?

parthibd avatar Apr 18 '22 03:04 parthibd

I can try implementing this if someone can give me some hints on where to start looking into the code.

parthibd avatar Apr 22 '22 20:04 parthibd

I actually do not see any timeline event information at all for pinia actions with vue 2.7.14 and invoked via mapActions.

brandonburkett avatar Jan 06 '23 16:01 brandonburkett