We have a basic app state that needs to be persisted upon the browser refresh. similar to vuex-state-persistance
plugin. Here is the basic state code that needs to be persisted.
export const initialState = {
user: {
uuid: 'wedRfertYjsnjnakUiisdj878HBhsns',
name: 'Kiran Maniya',
scope: 'user'
}
};
Is there anything that can be used directly as a plugin or I need to write a custom plugin that persists the state in localStorage
asynchronously? Also, how do we modularise the state when we have a complex and large state to manage?