From 5b4a977ee6413ef8393e78839453ea306b74ae97 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 17 May 2021 11:32:35 +0200 Subject: [PATCH] chore: comment in docs [skip ci] --- src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index cf8b38af..4e99a59e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -312,8 +312,10 @@ export interface StoreWithState< *store.$onAction(({ after, onError }) => { * // Here you could share variables between all of the hooks as well as * // setting up watchers and clean them up - * after(() => { + * after((resolvedValue) => { * // can be used to cleanup side effects + * . // `resolvedValue` is the value returned by the action, if it's a + * . // Promise, it will be the resolved value instead of the Promise * }) * onError((error) => { * // can be used to pass up errors -- 2.47.2