Skip to content

Commit 0e1ca3d

Browse files
fix: elaborate on "non-flux state management" (#2469)
* fix: elaborate on "non-flux state management" close #1224 * fix: match subject plurality * Update src/v2/style-guide/index.md Co-Authored-By: Natalia Tepluhina <tarya.se@gmail.com> Co-authored-by: Natalia Tepluhina <tarya.se@gmail.com>
1 parent a805f9a commit 0e1ca3d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/v2/style-guide/index.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ While attribute values without any spaces are not required to have quotes in HTM
14541454

14551455
``` html
14561456
<template v-slot:header>
1457-
<h1>Here might be a page title</h1>
1457+
<h1>Here might be a page title</h1>
14581458
</template>
14591459

14601460
<template #footer>
@@ -1496,7 +1496,7 @@ While attribute values without any spaces are not required to have quotes in HTM
14961496

14971497
``` html
14981498
<template v-slot:header>
1499-
<h1>Here might be a page title</h1>
1499+
<h1>Here might be a page title</h1>
15001500
</template>
15011501

15021502
<template v-slot:footer>
@@ -1506,7 +1506,7 @@ While attribute values without any spaces are not required to have quotes in HTM
15061506

15071507
``` html
15081508
<template #header>
1509-
<h1>Here might be a page title</h1>
1509+
<h1>Here might be a page title</h1>
15101510
</template>
15111511

15121512
<template #footer>
@@ -1941,7 +1941,9 @@ Vue.component('TodoItem', {
19411941

19421942
**[Vuex](https://github.com/vuejs/vuex) should be preferred for global state management, instead of `this.$root` or a global event bus.**
19431943

1944-
Managing state on `this.$root` and/or using a [global event bus](https://vuejs.org/v2/guide/migration.html#dispatch-and-broadcast-replaced) can be convenient for very simple cases, but are not appropriate for most applications. Vuex offers not only a central place to manage state, but also tools for organizing, tracking, and debugging state changes.
1944+
Managing state on `this.$root` and/or using a [global event bus](https://vuejs.org/v2/guide/migration.html#dispatch-and-broadcast-replaced) can be convenient for very simple cases, but it is not appropriate for most applications.
1945+
1946+
Vuex is the [official flux-like implementation](https://vuejs.org/v2/guide/state-management.html#Official-Flux-Like-Implementation) for Vue, and offers not only a central place to manage state, but also tools for organizing, tracking, and debugging state changes. It integrates well in the Vue ecosystem (including full [Vue DevTools](https://vuejs.org/v2/guide/installation.html#Vue-Devtools) support).
19451947

19461948
{% raw %}</details>{% endraw %}
19471949

0 commit comments

Comments
 (0)