I have a component with nested properties:
data () {
return {
config: {
headers: ['a', 'b', 'c'],
pagination: {
currentPage: externalService.data.page
totalPages: externalService.data.totalPages
}
}
}
}
When externalService.data.totalPages is changed (by other component), the child components are not reactive to this, since maybe the nested reference in config was changed, but not config itself.
I can use watchers to solve it, but I wish to know what would be the declarative (and optimal) solution for it. I'm not a fan of imperative approach when it comes to ClientSide.