Is it possible to dispatch just a single property to the vuex store instead of the entire object? The vuex docs do not appear to provide any information on this. Currently, I am storing objects in the following manner:
store.dispatch('currentUser', {
memberData: 'fooBar'
});
Sometimes, I only need to retrieve and push a single value from the database into the store. Is there a way to achieve this?
UPDATE
I believe my question may have been unclear.
In reality, what I need is the ability to access a nested child property within memberData during dispatch in order to modify just one element of memberData. In all honesty, the response value itself is irrelevant and could be 'foo' or anything else.