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
// expands to root.get({ path: 'a/b$foo/someGetter' });
110
+
```
111
+
112
+
---
113
+
114
+
**Used in components:**
115
+
-`root`: Same as above, but only absolute paths work
116
+
-`map`:`Vuex+` own version of`mapGetters`/`mapActions`withmodule namespacing handled, when that the component tree and their vuex models are nested in the same way.
117
+
If vuex modules are nested like so
118
+
```
119
+
a
120
+
b$chuu
121
+
c
122
+
```
123
+
The vuex modules mapping them, needs the same order, even if other components can be squeezed in between:
124
+
```
125
+
A(a) // Mapping a
126
+
Foo
127
+
B(b) // Mapping b
128
+
Bar
129
+
Piri
130
+
C(c) // Mapping c
131
+
```
132
+
133
+
- `map.getters()` and `map.actions()` expand vuex paths and adds parent instances
134
+
```javascript
135
+
<script>
136
+
import { map } from 'vuex+';
137
+
138
+
export default {
139
+
computed: {
140
+
...map.getters({
141
+
count: 'c/someGetter', // expands to 'a/b$chuu/c/someGetter'
0 commit comments