From 2dbb54daa760321c71fdaf1dac16584785d35255 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 9 Apr 2021 11:28:31 +0200 Subject: [PATCH] docs: minor changes --- docs/cookbook/options-api.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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() ``` -- 2.47.3