]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: minor changes
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 9 Apr 2021 09:28:31 +0000 (11:28 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Fri, 9 Apr 2021 11:08:56 +0000 (13:08 +0200)
docs/cookbook/options-api.md

index ce567bbdacd6b8ab703f6b8e00c5141a55475c3d..1a267e2a0c2841b181d66efde9017979b3f7b7e7 100644 (file)
@@ -44,8 +44,10 @@ By default, Pinia will add the `"Store"` suffix to the `id` of each store. You c
 ```js
 import { createPinia, setMapStoreSuffix } from 'pinia'
 
-setMapStoreSuffix('') // completely remove the suffix
-setMapStoreSuffix('_store') // user_store, cart_store (it's okay, I won't judge you)
+// completely remove the suffix: this.user, this.cart
+setMapStoreSuffix('')
+// this.user_store, this.cart_store (it's okay, I won't judge you)
+setMapStoreSuffix('_store')
 export const pinia = createPinia()
 ```