diff options
author | Phil Hughes <me@iamphill.com> | 2019-03-11 09:10:05 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-03-11 09:10:05 +0000 |
commit | a89df58527aae693438001ab0800363e7a7d6b07 (patch) | |
tree | 2f40d071725093af93fab9b63643e54035fba136 | |
parent | 99b813ddcd51c125b342fe6b8d2a847a84993621 (diff) | |
parent | cbe69e4324357529a450d9401eb176186813e78a (diff) | |
download | gitlab-ce-a89df58527aae693438001ab0800363e7a7d6b07.tar.gz |
Merge branch 'docs-patch-49' into 'master'
Updates how to export the state object
See merge request gitlab-org/gitlab-ce!25947
-rw-r--r-- | doc/development/fe_guide/vuex.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/development/fe_guide/vuex.md b/doc/development/fe_guide/vuex.md index 4b60ec80cb8..7b54fa6289c 100644 --- a/doc/development/fe_guide/vuex.md +++ b/doc/development/fe_guide/vuex.md @@ -52,7 +52,7 @@ The first thing you should do before writing any code is to design the state. Often we need to provide data from haml to our Vue application. Let's store it in the state for better access. ```javascript - export default { + export default () => ({ endpoint: null, isLoading: false, @@ -62,7 +62,7 @@ Often we need to provide data from haml to our Vue application. Let's store it i errorAddingUser: false, users: [], - }; + }); ``` #### Access `state` properties |