]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
chore: comment in docs [skip ci]
authorEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 09:32:35 +0000 (11:32 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Mon, 17 May 2021 09:32:35 +0000 (11:32 +0200)
src/types.ts

index cf8b38afa0e20d24162c5dbd5f01cd8d4050fe52..4e99a59eef55b943611f1751ee898abdeffb0ebd 100644 (file)
@@ -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