Skip to content

Instantly share code, notes, and snippets.

View luizvnasc's full-sized avatar

Luiz Augusto Volpi Nascimento luizvnasc

  • Capgemini Engineering
  • Porto, Portugal
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.