[Vuejs]-Expose functions inside Vuex Plugin

0👍

Vuex plugins do not expose anything outside their context. They are made to hook into mutations while receiving the store object. Your undo function would be better suited as an action within a store/module(s).

If you have several modules that need to make use of undo, look at the section Module Reuse.

Leave a comment