I am currently working on a chat and want a function that scrolls down to end of the div after data is added to an array.
updated() pretty much works fine but we also have a vue-timepicker in the component which displays a timer so the $nextTick() gets executed every second and you cannot scroll up.
Any ideas how to execute the $nextTick() only when the array with messages changes or any other thoughts?
updated() {
this.$nextTick(() => this.scrollToBottom());
},