From: Eduardo San Martin Morote Date: Fri, 9 Apr 2021 09:28:31 +0000 (+0200) Subject: docs: minor changes X-Git-Tag: v2.0.0-alpha.11~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dbb54daa760321c71fdaf1dac16584785d35255;p=thirdparty%2Fvuejs%2Fpinia.git docs: minor changes --- diff --git a/docs/cookbook/options-api.md b/docs/cookbook/options-api.md index ce567bbd..1a267e2a 100644 --- a/docs/cookbook/options-api.md +++ b/docs/cookbook/options-api.md @@ -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() ```