Skip to content

Commit 3839312

Browse files
committed
Fix payload on replaying mutation
1 parent e8b1b4e commit 3839312

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/vuex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export function initVuexBackend (hook, bridge) {
146146
// Replay mutations
147147
for (let i = snapshot.index + 1; i <= index; i++) {
148148
const mutation = mutations[i]
149-
mutation.handlers.forEach(handler => handler(state, mutation.payload))
149+
mutation.handlers.forEach(handler => handler(mutation.payload))
150150
if (i !== index && i % SharedData.cacheVuexSnapshotsEvery === 0) {
151151
takeSnapshot(i, state)
152152
}

0 commit comments

Comments
 (0)