Skip to content

Commit 9305a51

Browse files
author
Guillaume Chau
committed
fix: vuex throws warning when editing state in strict mode, closes #757
1 parent 793a97b commit 9305a51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/vuex.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export function initVuexBackend (hook, bridge) {
178178
if (value) {
179179
parsedValue = parse(value, true)
180180
}
181+
store._committing = true
181182
set(store.state, path, parsedValue)
183+
store._committing = false
182184
bridge.send('vuex:inspected-state', {
183185
index,
184186
snapshot: getSnapshot()

0 commit comments

Comments
 (0)