Skip to content

Commit f51855c

Browse files
authored
Merge pull request sudheerj#7 from StanislawVictorovich/patch-1
formate code
2 parents db3b8e5 + c3d2115 commit f51855c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3106,11 +3106,11 @@ List of 300 VueJS Interview Questions
31063106
}, 1000)
31073107
})
31083108
},
3109-
actionTwo ({ dispatch, commit }) {
3110-
return dispatch('actionA').then(() => {
3111-
commit('second mutation')
3112-
})
3113-
}
3109+
actionTwo ({ dispatch, commit }) {
3110+
return dispatch('actionA').then(() => {
3111+
commit('second mutation')
3112+
})
3113+
}
31143114
}
31153115
```
31163116
As per the above example, When you try to dispatch actionTwo it dispatchs actionOne first and then commits respective mutation. You can still simplify with async/await as below,

0 commit comments

Comments
 (0)