[Vuejs]-Vuex error – do not mutate vuex store state outside mutation handlers

0👍

Changing

const state = {
  authorization: SessionStorage.getItem('authorization') || null
};

to

const state = () => ({
  authorization: SessionStorage.getItem('authorization') || null
});

fixed the problem.

Leave a comment