Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aspiringguru opened this issue Mar 3, 2019 · 0 comments
Open

Comments

@aspiringguru
Copy link

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.

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant