From: Eduardo San Martin Morote Date: Mon, 17 May 2021 09:32:35 +0000 (+0200) Subject: chore: comment in docs [skip ci] X-Git-Tag: v2.0.0-alpha.18~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b4a977ee6413ef8393e78839453ea306b74ae97;p=thirdparty%2Fvuejs%2Fpinia.git chore: comment in docs [skip ci] --- 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