[Vuejs]-Vue / Vuex: How to properly make a mutation for adding a property nested in object

0👍

There are multiple ways to add a reactive property.

Here’s one way, with Vue.set

const id = '...'
const product = products.order_products.find(p => p.inventory_id === id)
Vue.set(product, 'scanned', true)

Leave a comment