Skip to content

Commit 1ec622d

Browse files
authored
docs: change data with state (#2980)
Every piece in the object that returns `state` is what must be declared. Even though we can think of `state` *as* the `data` of the store, but I believe that is confussing to use both terms indistinctly.
1 parent d5958b9 commit 1ec622d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/docs/core-concepts/state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const useStore = defineStore('storeId', {
3232

3333
:::tip
3434

35-
In order for Vue to properly detect state, you must declare every state piece in `data`, even if its initial value is `undefined`.
35+
In order for Vue to properly detect state, you must declare every state piece in `state`, even if its initial value is `undefined`.
3636

3737
:::
3838

0 commit comments

Comments
 (0)