DEV Community

loading...

Discussion on: Architecting Vuex store for large-scale Vue.js applications

Collapse
wormss profile image
WORMSS

I believe state can be supplied as a function, so no need to run state = { ...initalState() }. Just state: initalState

Collapse
haxzie profile image
Musthaq Ahamad Author

Thanks for the suggestion! ❤️