Reset store
See original GitHub issueHow can I reset vuex store to initial state? normally without VuexModule I can reset store easily like this:
// default state
const getDefaultState = () => ({
name: 'example',
age: 20
})
// store
const store = new Vuex.Store({
state: getDefaultState(),
mutations: {
resetState(state) {
Object.assign(state, getDefaultState())
}
}
})
But I can’t figure out how could I achieve this with vuex-module-decorators
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
The Reset | Elevated Essentials Edited For Effortlessness
The Reset offers versatile, flattering, modern go-tos that make dressing easy so you look and feel your best. Elevated essentials that are designed...
Read more >Reset Vintage Apparel BUY • SELL • TRADE – Reset Web Store
RESET STL 2607 Bellevue Ave Maplewood, MO 314.833.3061 @Reset_STL. RESET KC 8 Westport Rd Kansas City, MO 816.299.9941
Read more >What's the Difference between a Store Reset and a Store ...
A store Reset is the process of rearranging/replacing fixtures, shelves, stand-alone units, merchandise etc., ultimately to make a retail business more ...
Read more >Reset STL (@reset_stl) • Instagram photos and videos
Reset STL. Buy ♦️ Sell ♦️ Trade Monday-Saturday • 12-7pm. Sunday • 12-5pm. resetvtg.com. 2,226 posts. 49.4K followers. 105 following.
Read more >How to Reset Microsoft Store or Clear Windows Store Cache
To reset Microsoft Store, open Settings > Apps > Apps and features > Search for Microsoft Store > Advanced options > Use the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bangjelkoski Yes, very simple solution:
@bill-lee-aics if there are many states, a loop could be helpful. for example: