[Vuejs]-Detect changes in JSON on a javascript side

0👍

The problem solved. It took to compare both arrays with deep-equal by watch handler.

watch: {
        invoices: {
            handler(val, oldVal)
                {
                    if(!(deepEqual(val, oldVal))) {
                        console.log('elo');
                    }
                }
        }
    }

Leave a comment