This is a short story to share a tip with Vue developers using Vuex and at the same time, showing a practical example on how a computed property setter can be used.

You may have missed this (or not) while learning Vuex but, it is possible to bind v-model with a piece of state in your Vuex store.

Let’s begin with the current solution to bind user input to a Vuex state.

So here’s our app example :

- The user is on a page where he can see a title and some content

- The user can edit the page and see the result directly on the UI

- When the user finishes his edition, he can save

- When the server finishes the saving, we hide the form