The video for this lesson is currently being updated, please read the transcript instead.

Adding Vuex to preview components

Some of the components we'd like to create live previews for have Vuex as a dependency. To preview these components, we'll need to add the store to the Wrapper component, and also create Vuex ORM model instances for them to bind to.

Store

Let's being by importing Vuex into the wrapper by going to the top of the file and putting import Vuex from "vuex"; . We'll also import our existing store config by going import storeConfig from "@/store";.

To view the complete lesson you'll need to login or join this course.


Click to load comments...