Skip to content

Commit b9ad228

Browse files
committed
fix(store): use factory function instead of constructor
1 parent c133101 commit b9ad228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vuex from 'vuex';
1+
import { createStore as createVuexStore } from 'vuex';
22
import { getters } from './getters/todo';
33
import { FILTERS } from '../constants/filter';
44

@@ -19,4 +19,4 @@ const actions = {
1919
};
2020

2121
export const createStore = (state = { todos: [], filter: FILTERS.all }) =>
22-
new Vuex.Store({ state, actions, mutations, getters });
22+
createVuexStore({ state, actions, mutations, getters });

0 commit comments

Comments
 (0)