]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: remove warning layout
authoristiyak <tailoristiyak303@gmail.com>
Wed, 9 Feb 2022 10:36:05 +0000 (16:06 +0530)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 18 Feb 2022 23:03:45 +0000 (00:03 +0100)
packages/docs/core-concepts/index.md

index ca702b779bd5a29e0fc44bc72bfe2cc6b1ea0923..9af95324b57d00ce9caa87139a8ad30061d01637 100644 (file)
@@ -89,8 +89,7 @@ export default defineComponent({
 })
 ```
 
-:::warning
-Extracting `actions` using `storeToRefs` will result in `actions` being `undefined`. To extract `actions` from the store, you should skip using `storeToRefs`
+Extracting `actions` using `storeToRefs` will result in `actions` being `undefined`. To extract `actions` from the store, you should skip using `storeToRefs`:
 
 ```js
 import { storeToRefs } from 'pinia'
@@ -108,7 +107,7 @@ export default defineComponent({
     increment() // "undefined"
 
 
-    // if you want to only destructure `actions`
+    // ✅ if you want to only destructure `actions`
     // from the store then don't use `storeToRefs`
     const { increment } = store
 
@@ -116,17 +115,6 @@ export default defineComponent({
     counter // 2
 })
 ```
-:::
-
-:::tip
-- **To extract only the properties from the store:**
-    - `const { counter } = counterStore`
-
-<br/>
-
-- **To extract only the actions from the store:**
-    - `const { increment, decrement } = counterStore`
-:::