real-world-vue icon indicating copy to clipboard operation
real-world-vue copied to clipboard

missed adding categories in store.js in video prior to 05:14

Open aspiringguru opened this issue 6 years ago • 0 comments

minor error which students should be able to diagnose by this stage of the course, caused me some delay and annoying, hence the request to fix.

@ 05:00 in the vuex-state-getters lesson. https://www.vuemastery.com/courses/mastering-vuex/vuex-state-getters

adding this code to EventCreate.vue

  • {{ cat }}
  • and computed: mapState({ user: 'user', categories: 'categories' })

    during the video, omitted adding categories in store.js state: { user: { id: 'abc123', name: 'adam Jahr' }, categories: [ 'sustainability', 'nature', 'animal welfare', 'housing', 'education', 'food', 'community' ] },

    without categories in store.js the following error appears.

    There was an error: [actually more messages appear if you expand the feedback in developers console, but the error is not easy to recognize or diagnose, a broader problem I haven't worked on in this stack]


    other unrelated issues/questions while I'm here. :) Refreshing the app is not as simple as refreshing the page. Not sure if hot reloading is the solution > https://vue-loader.vuejs.org/guide/hot-reload.html Would really like to see a video explaining how to debug apps properly.

    aspiringguru avatar Mar 03 '19 05:03 aspiringguru