We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c133101 commit b9ad228Copy full SHA for b9ad228
src/store/index.js
@@ -1,4 +1,4 @@
1
-import Vuex from 'vuex';
+import { createStore as createVuexStore } from 'vuex';
2
import { getters } from './getters/todo';
3
import { FILTERS } from '../constants/filter';
4
@@ -19,4 +19,4 @@ const actions = {
19
};
20
21
export const createStore = (state = { todos: [], filter: FILTERS.all }) =>
22
- new Vuex.Store({ state, actions, mutations, getters });
+ createVuexStore({ state, actions, mutations, getters });
0 commit comments