From: Artur Carvalho Date: Mon, 3 Apr 2023 09:22:54 +0000 (+0200) Subject: docs: typos (#2099) X-Git-Tag: @pinia/nuxt@0.4.8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=721f9cc19d1c9c4748a79d5ac014f191c34ac4ec;p=thirdparty%2Fvuejs%2Fpinia.git docs: typos (#2099) --- 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.