I have a vuex store which is dynamically populated like so
state: { collector: { tableName: { columnName1 : 2, columnName2 : 'NO', columnName3 : '2019-03-23' ... ... } } } All my component store it's table name && columnName in props, so In my component I have access to tableName and columnName.
Now, onChange of componentA(columnName1) the value of componentB(columnName3) changes and the vuex value gets changed. I do something like this to change the value of vuex
this.$store.commit('setCollector', { tableName : currTableName , value : currValue , columnName : currColumnName}); Now, I want a way to check for the change of vuex value and update it in the componentB(columnName3) input box.
How can I achieve it? Can someone guide me?