From 50ea3bcd0dba8b0b1747d2ee80bcb3dbfb8a9866 Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Mon, 30 Oct 2017 09:17:12 -0400 Subject: [PATCH 1/2] wording did not make sense. > Actions don't Did not make sense. --- docs/en/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/actions.md b/docs/en/actions.md index abaa82c70..72229932e 100644 --- a/docs/en/actions.md +++ b/docs/en/actions.md @@ -45,7 +45,7 @@ Actions are triggered with the `store.dispatch` method: store.dispatch('increment') ``` -This may look dumb at first sight: if we want to increment the count, why don't we just call `store.commit('increment')` directly? Well, remember that **mutations must be synchronous**? Actions don't. We can perform **asynchronous** operations inside an action: +This may look dumb at first sight: if we want to increment the count, why don't we just call `store.commit('increment')` directly? Remember that **mutations must be synchronous**? Actions need not be. We can perform **asynchronous** operations inside an action: ``` js actions: { From 712273d7f8c0957a97423d028d29cc9a772e4aca Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Mon, 30 Oct 2017 13:27:24 -0400 Subject: [PATCH 2/2] Updating wording based on conversation --- docs/en/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/en/actions.md b/docs/en/actions.md index 72229932e..c89fffe0b 100644 --- a/docs/en/actions.md +++ b/docs/en/actions.md @@ -45,7 +45,7 @@ Actions are triggered with the `store.dispatch` method: store.dispatch('increment') ``` -This may look dumb at first sight: if we want to increment the count, why don't we just call `store.commit('increment')` directly? Remember that **mutations must be synchronous**? Actions need not be. We can perform **asynchronous** operations inside an action: +This may look dumb at first sight: if we want to increment the count, why don't we just call `store.commit('increment')` directly? Remember that **mutations have to be synchronous**? Actions don't. We can perform **asynchronous** operations inside an action: ``` js actions: {