Both vuex-persist or vuex-persistedstate store state in localStorage using JSON.stringify. This means all functions of an object are stripped off. In case the object is a class instance this means the instance cannot automatically be restored. Imho this is problematic since application state often consists of class instances.
I'm not sure how to proceed. My vuex state consist mainly of class instances. What is the best practice regarding persistable state?