]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: add missing getters example in readme (#70)
authorRijk van Zanten <rijkvanzanten@me.com>
Thu, 6 Feb 2020 16:38:49 +0000 (11:38 -0500)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 16:38:49 +0000 (17:38 +0100)
* Add missing example

Based on the comment, I believe you intended to have a third example in here.

* Update README.md

Co-Authored-By: Eduardo San Martin Morote <posva@users.noreply.github.com>
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
README.md

index cd2e3495573bfaaab312659a1b947696e53522eb..238d9f012030509b819b53f2c8442656bf67f2b4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -124,7 +124,8 @@ export default defineComponent({
       main,
       // gives access to the state
       state: main.state,
-      // gives access to specific getter,
+      // gives access to specific getter; like `computed` properties, do not include `.value`
+      doubleCount: main.doubleCount
     }
   },
 })