I've encountered an issue when trying to update certain template properties in response to a change in a Vuex store value.
If I set the value to undefined
within my store action (e.g.
commit('SET_SELECTED_TICKET_ATTACHMENTS', undefined);
), everything works as expected.
However, if I set the value to null
instead (
commit('SET_SELECTED_TICKET_ATTACHMENTS', null);
), my watch function does not trigger.
The watch function being used is:
selectedTicketAttachments () {
this.isTicketAttachmentLoading = false;
}
Here is the mutation associated with this watch function:
SET_SELECTED_TICKET_ATTACHMENTS(state, selectedTicketAttachments){
state.selectedTicketAttachments = selectedTicketAttachments;
},
I would greatly appreciate any assistance on this matter!