Check out a free preview of the full Vuex for Intermediate Vue 2 Developers course

The "Commit & Dispatch Exercise" Lesson is part of the full, Vuex for Intermediate Vue 2 Developers course featured in this preview video. Here's what you'd learn in this lesson:

Students are instructed to destructure context so it uses the commit and dispatch methods to gain a better understanding of how to use these methods.

Preview
Close

Transcript from the "Commit & Dispatch Exercise" Lesson

[00:00:00]
>> So the next exercise that will work on is to look at the code that we have so far. And we're gonna grab instead of using context directly, we're going to destructure it. Which means that we're gonna create an object and then we're gonna use the specific pieces of it that we will need in our mutation.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now