Skip to content

Commit

Permalink
Fix payload on replaying mutation
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1ker committed Nov 18, 2018
1 parent e8b1b4e commit 3839312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/vuex.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export function initVuexBackend (hook, bridge) {
// Replay mutations
for (let i = snapshot.index + 1; i <= index; i++) {
const mutation = mutations[i]
mutation.handlers.forEach(handler => handler(state, mutation.payload))
mutation.handlers.forEach(handler => handler(mutation.payload))
if (i !== index && i % SharedData.cacheVuexSnapshotsEvery === 0) {
takeSnapshot(i, state)
}
Expand Down

0 comments on commit 3839312

Please sign in to comment.