0👍
Not sure if that’s what you mean. But this might do the the trick:
state: initialState(),
stateHistory:[initialState()]
And then you can do this before resetting
stateHistory.push(JSON.parse(JSON.stringify(state))) // creates a deepy copy of your current state
resetState() // reset the state after storing old state
- [Vuejs]-Vue components not rendering when @nuxtjs/storybook is used in a Vue Storefront Next project – possibly a Typescript issue?
- [Vuejs]-Vuetify Switcher I18N translation
Source:stackexchange.com