Skip to content

Commit 2a2e6fc

Browse files
committed
docs: link
close #1287
1 parent 5475328 commit 2a2e6fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/docs/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pinia [started](https://github.com/vuejs/pinia/commit/06aeef54e2cad66696063c6282
99

1010
## Why should I use Pinia?
1111

12-
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:
12+
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:
1313

1414
- Devtools support
1515
- A timeline to track actions, mutations
@@ -86,8 +86,8 @@ const useCounterStore = defineStore('counter', {
8686
actions: {
8787
increment() {
8888
this.count++
89-
}
90-
}
89+
},
90+
},
9191
})
9292

9393
const useUserStore = defineStore('user', {

0 commit comments

Comments
 (0)