Skip to content

Commit 5435e35

Browse files
dobbsryanyyx990803
authored andcommitted
Update state.md (#140)
1 parent cc666ac commit 5435e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/en/state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ computed: {
101101

102102
### Getters Can Return Derived State
103103

104-
Vuex state getters are computed properties under the hood, this means you can leverage them to reactively (and efficiently) compute derived state. For example, say in the state we have an array of `messages` containing all messages, and a `currentThreadID` representing a thread that is currently being viewed by the user. What we want to display to the user is a filtered list of messages that belong to the current thread:
104+
Vuex state getters are computed properties under the hood, this means you can leverage them to reactively (and efficiently) compute derived state. For example, say in the state we have an array of `messages` containing all messages, and a `currentThreadID` representing a thread that is currently being viewed by the user. What we want to display to the user is a filtered list of messages that belongs to the current thread:
105105

106106
``` js
107107
vuex: {

0 commit comments

Comments
 (0)