Skip to content

Instantly share code, notes, and snippets.

View nielsbom's full-sized avatar
🌳
codegrower.net

Niels Bom nielsbom

🌳
codegrower.net
View GitHub Profile
@DawidMyslak
DawidMyslak / vue.md
Last active April 22, 2024 12:49
Vue.js and Vuex - best practices for managing your state

Vue.js and Vuex - best practices for managing your state

Modifying state object

Example

If you have to extend an existing object with additional property, always prefer Vue.set() over Object.assign() (or spread operator).

Example below explains implications for different implementations.