import Vue from 'vue';
import Vuex from 'vuex';

// Must initialize plugin
// Has to be done here because webpack hoists imports before executable code
Vue.use(Vuex);


/**
Application-wide state object
*/
const state = {
    /* Supply mock data for now */
    features: [
        {title: 'sample'},
        {title: 'sample2'},
        {title: 'sample3'}
    ]
};

/**
Functions that can mutate our state object
*/
const mutations = {

};

/**
Bundle it all up in a Vuex.Store
*/
const store = new Vuex.Store({
    state
});

export default store;

@@ -166,16 +166,17 @@
 ;%0A%0A%0A/**%0A
+ 
 Applicat
@@ -189,32 +189,33 @@
 de state object%0A
+ 
 */%0Aconst state =
@@ -364,16 +364,17 @@
 %7D;%0A%0A/**%0A
+ 
 Function
@@ -384,12 +384,8 @@
 hat 
-can 
 muta
@@ -404,16 +404,17 @@
  object%0A
+ 
 */%0Aconst
@@ -428,16 +428,158 @@
 ons = %7B%0A
+    /**%0A     Replace the contents of the store.features array%0A     */%0A    REPLACE (state, features) %7B%0A        state.features = features;%0A    %7D
 %0A%7D;%0A%0A/**
@@ -579,16 +579,17 @@
 %7D;%0A%0A/**%0A
+ 
 Bundle i
@@ -613,16 +613,17 @@
 x.Store%0A
+ 
 */%0Aconst

Add REPLACE mutation to store