]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: link
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 12 May 2022 09:57:51 +0000 (11:57 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 12 May 2022 09:57:51 +0000 (11:57 +0200)
close #1287

packages/docs/introduction.md

index aecc3e8e8db10b27f6aba9c1212a6ec6c9a3456a..4899bee94142c5b7024542021416a7662b097a95 100644 (file)
@@ -9,7 +9,7 @@ Pinia [started](https://github.com/vuejs/pinia/commit/06aeef54e2cad66696063c6282
 
 ## Why should I use Pinia?
 
-Pinia is a store library for Vue, it allows you to share a state across components/pages. If you are familiar with the Composition API, you might be thinking you can already share a global state with a simple `export const state = reactive({})`. This is true for single page applications but **exposes your application to security vulnerabilities** if it is server side rendered. But even in small single page applications, you get a lot from using Pinia:
+Pinia is a store library for Vue, it allows you to share a state across components/pages. If you are familiar with the Composition API, you might be thinking you can already share a global state with a simple `export const state = reactive({})`. This is true for single page applications but **exposes your application to [security vulnerabilities](https://vuejs.org/guide/scaling-up/ssr.html#cross-request-state-pollution)** if it is server side rendered. But even in small single page applications, you get a lot from using Pinia:
 
 - Devtools support
   - A timeline to track actions, mutations
@@ -86,8 +86,8 @@ const useCounterStore = defineStore('counter', {
   actions: {
     increment() {
       this.count++
-    }
-  }
+    },
+  },
 })
 
 const useUserStore = defineStore('user', {