Skip to content

Commit 24a8157

Browse files
author
Guillaume Chau
committed
fix(vuex): don't clone non enumerable properties
1 parent 97e6af5 commit 24a8157

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/backend/vuex.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
7474
...options,
7575
preserveState: false
7676
},
77-
state: clone(state, {
78-
includeNonEnumerable: true
79-
})
77+
state: clone(state)
8078
}
8179

8280
if (SharedData.recordVuex) {
@@ -145,9 +143,7 @@ export function initVuexBackend (hook, bridge, isLegacy) {
145143

146144
mutations.push({
147145
type,
148-
payload: clone(payload, {
149-
includeNonEnumerable: true
150-
}),
146+
payload: clone(payload),
151147
index,
152148
handlers: store._mutations[type],
153149
registeredModules: Object.keys(registeredModules),

0 commit comments

Comments
 (0)