You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check the mutation event on the Timeline tab in DevTools
Expected behavior
oldValue shows the previous value.
Actual behavior
oldValue shows an undefined value.
Additional information
Hello.
When I try using Setup Stores, the field oldValue is shown as undefined in the mutation event. But if I use Option Stores it shows the value correctly.
I have a code like this: App.vue
<scriptsetup>import{useCounterStore}from"./stores/counter";constcounter=useCounterStore();</script><template><divclass="card"><buttontype="button" @click="counter.increment()">
count is {{ counter.count }}
</button></div></template>
lombervid
changed the title
DevTools: Undefined value for oldValue in mutation event using Setup Stores
DevTools: Undefined value for oldValue in mutation event using Setup Stores
Mar 8, 2023
Reproduction
https://codesandbox.io/p/sandbox/cocky-butterfly-51pk2y?file=%2Fsrc%2Fstores%2Fcounter.js
Steps to reproduce the bug
mutation
event on the Timeline tab in DevToolsExpected behavior
oldValue
shows the previous value.Actual behavior
oldValue
shows anundefined
value.Additional information
Hello.
When I try using
Setup Stores
, the fieldoldValue
is shown asundefined
in the mutation event. But if I useOption Stores
it shows the value correctly.I have a code like this:
App.vue
Setup Stores: stores/counter.js
Option Stores: stores/counter.js
Regards!
The text was updated successfully, but these errors were encountered: