Views: 2698
Last Modified: 28.04.2022
Creating new storage
Before:
import {Vuex} from 'ui.vue.vuex';
const store = new Vuex.Store({
...
});
import {Vuex} from 'ui.vue.vuex';
const store = Vuex.createStore({
...
});
Now:
import {createStore} from 'ui.vue3.vuex';
const store = createStore({
...
});
Storage creation format has been updated. We are using Vuex 4-similar approach Vuex.createStore
instead of classic new Vuex.Store
for more smooth transition to future versions.
Find more details in the article: Working with Vuex 4.