You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a non-namespaced (basic) vuex store and when I commit a change, I'm getting the following error:
(to be more precise: the error is logged twice)
I think the documentation is incorrect. When initializing the store as below I get the error.
import Vuex from "vuex";
import undoRedo from "undo-redo-vuex";
export default new Vuex.Store({
state,
getters,
actions,
mutations,
plugins: [
undoRedo({
// NB: Include 'ignoreMutations' at root level, and do not provide the list of 'paths'.
ignoreMutations: ["addShadow", "removeShadow"],
}),
],
});
However, in the demo scaffoldStore is also added. If I add that, then the plug-in works as expected.
Hi @tobiascornille thanks again for this well spotted gap in the documentation! 👍
The observation is indeed correct, the scaffoldStore function serves as a wrapper to add "boilerplate" to the state, actions and mutations of the store.
I'm using a non-namespaced (basic) vuex store and when I commit a change, I'm getting the following error:
(to be more precise: the error is logged twice)
Any clue what I'm missing or doing wrong?
The text was updated successfully, but these errors were encountered: