@@ -19,7 +19,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
19
19
} )
20
20
}
21
21
22
- const getStateSnapshot = ( _store = store ) => stringify ( _store . state )
22
+ const getStateSnapshot = ( _store = store ) => clone ( _store . state )
23
23
24
24
let baseStateSnapshot , stateSnapshots , mutations , lastState
25
25
let registeredModules = { }
@@ -163,7 +163,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
163
163
// devtool -> application
164
164
bridge . on ( 'vuex:travel-to-state' , ( { index, apply } ) => {
165
165
const snapshot = replayMutations ( index )
166
- const { state } = parse ( snapshot , true )
166
+ const { state } = clone ( snapshot )
167
167
bridge . send ( 'vuex:inspected-state' , {
168
168
index,
169
169
snapshot
@@ -249,7 +249,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
249
249
if ( stateSnapshot . index === index ) {
250
250
resultState = stateSnapshot . state
251
251
252
- const state = parse ( stateSnapshot . state , true )
252
+ const state = clone ( stateSnapshot . state )
253
253
updateSnapshotsVm ( state )
254
254
store . replaceState ( state )
255
255
} else {
@@ -265,7 +265,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
265
265
if ( ! isProd ) console . log ( 'before replay unregister' , m )
266
266
} )
267
267
268
- const state = parse ( stateSnapshot . state , true )
268
+ const state = clone ( stateSnapshot . state )
269
269
updateSnapshotsVm ( state )
270
270
store . replaceState ( state )
271
271
@@ -377,7 +377,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
377
377
if ( stateSnapshot ) {
378
378
originalVm = store . _vm
379
379
store . _vm = snapshotsVm
380
- store . replaceState ( parse ( stateSnapshot , true ) )
380
+ store . replaceState ( clone ( stateSnapshot ) )
381
381
}
382
382
383
383
const result = stringify ( {
0 commit comments