Deep Watch Vue2
Published at 2023-10-30  1 min read

watch object state changes with deep params on Vue2

watch: {
    row: {
        handler: function(newVal, oldVal) {
            if(newVal.config.showAvatar != oldVal.config.showAvatar) {
                // actions
            }
        },
        deep: true,
    }
}