DEV Community

loading...

Discussion on: State Management in Vue 3

Collapse
jsonberry profile image
Jason Awbrey

I’d like to point out that all these approaches are using the composition API..

Which all use reactive objects, that all eventually “mutate” the values..

But mutation in the context of Vue reactive objects is not the mutation anyone should be used to. Under the hood you are not directly mutating JavaScript object properties. In either v2 with the composition api plugin or native v3.

“mutation” is the name of the game and it should be embraced. It “looks like” mutation, but it’s not.

v3.vuejs.org/api/basic-reactivity....