summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Tang <dennis@dennistang.net>2018-05-08 14:51:29 +0000
committerDennis Tang <dennis@dennistang.net>2018-05-08 14:51:29 +0000
commit6fd75502d6afed374bf34f193b44eac57bf5ba33 (patch)
tree0714e8f6af1f2847ec463529a70e14b31ac0e4e1
parent533593e95cd3a922a2ec2ea43b345862361dfd67 (diff)
downloadgitlab-ce-6fd75502d6afed374bf34f193b44eac57bf5ba33.tar.gz
correct doc-nav header hierarchy
-rw-r--r--doc/development/fe_guide/vuex.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/development/fe_guide/vuex.md b/doc/development/fe_guide/vuex.md
index 6a89bfc7721..d6305bc4dec 100644
--- a/doc/development/fe_guide/vuex.md
+++ b/doc/development/fe_guide/vuex.md
@@ -149,7 +149,7 @@ import { mapActions } from 'vuex';
};
```
-#### `mutations.js`
+### `mutations.js`
The mutations specify how the application state changes in response to actions sent to the store.
The only way to change state in a Vuex store should be by committing a mutation.
@@ -188,7 +188,7 @@ Remember that actions only describe that something happened, they don't describe
};
```
-#### `getters.js`
+### `getters.js`
Sometimes we may need to get derived state based on store state, like filtering for a specific prop.
Using a getter will also cache the result based on dependencies due to [how computed props work](https://vuejs.org/v2/guide/computed.html#Computed-Caching-vs-Methods)
This can be done through the `getters`:
@@ -213,7 +213,7 @@ import { mapGetters } from 'vuex';
};
```
-#### `mutations_types.js`
+### `mutations_types.js`
From [vuex mutations docs][vuex-mutations]:
> It is a commonly seen pattern to use constants for mutation types in various Flux implementations. This allows the code to take advantage of tooling like linters, and putting all constants in a single file allows your collaborators to get an at-a-glance view of what mutations are possible in the entire application.