You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/migration-vuex.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ __Vuex 2.0__ is a radical redesign and simplification of the API, for those who
17
17
18
18
__Vuex 1.0__ is mostly backwards-compatible, so requires very few changes to upgrade. It is recommended for those with large existing codebases or who just want the smoothest possible upgrade path to Vue 2.0. This guide is dedicated to facilitating that process, but only includes migration notes. For the complete usage guide, see [the Vuex 1.0 docs](https://github.com/vuejs/vuex/tree/1.0/docs/en).
19
19
20
-
## `store.watch` with String Property Path <sup>deprecated</sup>
20
+
## `store.watch` with String Property Path <sup>replaced</sup>
21
21
22
22
`store.watch` now only accept functions. So for example, you would have to replace:
23
23
@@ -47,9 +47,9 @@ This gives you more complete control over the reactive properties you'd like to
47
47
</div>
48
48
{% endraw %}
49
49
50
-
## Store's Event Emitter <sup>deprecated</sup>
50
+
## Store's Event Emitter <sup>removed</sup>
51
51
52
-
The store instance no longer exposes the event emitter interface (`on`, `off`, `emit`). If you were previously using the store as a global event bus, [see this section](http://vuejs.org/guide/migration.html#dispatch-and-broadcast-deprecated) for migration instructions.
52
+
The store instance no longer exposes the event emitter interface (`on`, `off`, `emit`). If you were previously using the store as a global event bus, [see this section](http://vuejs.org/guide/migration.html#dispatch-and-broadcast-removed) for migration instructions.
53
53
54
54
Instead of using this interface to watch events emitted by the store itself (e.g. `store.on('mutation', callback)`), a new method `store.subscribe` is introduced. Typical usage inside a plugin would be:
55
55
@@ -71,7 +71,7 @@ See example [the plugins docs](https://github.com/vuejs/vuex/blob/1.0/docs/en/pl
71
71
</div>
72
72
{% endraw %}
73
73
74
-
## Middlewares <sup>deprecated</sup>
74
+
## Middlewares <sup>replaced</sup>
75
75
76
76
Middlewares are replaced by plugins. A plugin is simply a function that receives the store as the only argument, and can listen to the mutation event on the store:
0 commit comments