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";
.
Click to load comments...