Skip to content

Commit

Permalink
docs: typos (#2099)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcarvalho committed Apr 3, 2023
1 parent 8d53a42 commit 721f9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/core-concepts/actions.md
Expand Up @@ -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.

Expand Down

0 comments on commit 721f9cc

Please sign in to comment.