@@ -74,7 +74,9 @@ export function initVuexBackend (hook, bridge, isLegacy) {
74
74
...options ,
75
75
preserveState : false
76
76
} ,
77
- state : stringify ( state )
77
+ state : clone ( state , {
78
+ includeNonEnumerable : true
79
+ } )
78
80
}
79
81
80
82
if ( SharedData . recordVuex ) {
@@ -283,7 +285,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
283
285
tempAddedModules . push ( key )
284
286
origRegisterModule ( moduleInfo . path , {
285
287
...moduleInfo . module ,
286
- state : parse ( moduleInfo . state , true )
288
+ state : moduleInfo . state
287
289
} , moduleInfo . options )
288
290
updateSnapshotsVm ( store . state )
289
291
if ( ! isProd ) console . log ( 'replay register module' , moduleInfo )
@@ -340,7 +342,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
340
342
const { path, module, options, state } = registeredModules [ m ]
341
343
origRegisterModule ( path , {
342
344
...module ,
343
- state : parse ( state , true )
345
+ state
344
346
} , options )
345
347
if ( ! isProd ) console . log ( 'after replay register' , m )
346
348
} )
@@ -404,7 +406,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
404
406
const { path, module, options, state } = data
405
407
origRegisterModule ( path , {
406
408
...module ,
407
- state : parse ( state , true )
409
+ state
408
410
} , options )
409
411
registeredModules [ path . join ( '/' ) ] = data
410
412
}
0 commit comments