Skip to content

Commit

Permalink
feat(store): update store.js to use vuex v4 api
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanchal committed Aug 1, 2022
1 parent 2e471bd commit 9d22634
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/store/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import VueLog from '@dreipol/vue-log';
import VuexORM from '@vuex-orm/core';
import VuexORMAxios from '@vuex-orm/plugin-axios';
import axios from 'axios';
import Vue from 'vue';
import Vuex from 'vuex';
import { createStore } from 'vuex';
import database from './database';
import auth from './modules/auth';
import events from './modules/events';
Expand All @@ -27,12 +25,9 @@ VuexORM.use(VuexORMAxios, {
baseURL: `${process.env.VUE_APP_API_BASE_URL}`,
});

Vue.use(Vuex);
Vue.use(VueLog);

const debug = process.env.NODE_ENV !== 'production';

export default new Vuex.Store({
export default createStore({
modules: {
auth,
events,
Expand Down

0 comments on commit 9d22634

Please sign in to comment.