From 721f9cc19d1c9c4748a79d5ac014f191c34ac4ec Mon Sep 17 00:00:00 2001 From: Artur Carvalho Date: Mon, 3 Apr 2023 11:22:54 +0200 Subject: [PATCH] docs: typos (#2099) --- packages/docs/core-concepts/actions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docs/core-concepts/actions.md b/packages/docs/core-concepts/actions.md index 52b355d2..5550c69c 100644 --- a/packages/docs/core-concepts/actions.md +++ b/packages/docs/core-concepts/actions.md @@ -166,7 +166,7 @@ export default { ## Subscribing to actions -It is possible to observe actions and their outcome with `store.$onAction()`. The callback passed to it is executed before the action itself. `after` handle promises and allows you to execute a function after the action resolves. In a similar way, `onError` allows you execute a function if the action throws or rejects. These are useful for tracking errors at runtime, similar to [this tip in the Vue docs](https://v3.vuejs.org/guide/tooling/deployment.html#tracking-runtime-errors). +It is possible to observe actions and their outcome with `store.$onAction()`. The callback passed to it is executed before the action itself. `after` handles promises and allows you to execute a function after the action resolves. In a similar way, `onError` allows you to execute a function if the action throws or rejects. These are useful for tracking errors at runtime, similar to [this tip in the Vue docs](https://v3.vuejs.org/guide/tooling/deployment.html#tracking-runtime-errors). Here is an example that logs before running actions and after they resolve/reject. -- 2.47.3