Vue lifecycle changes

destroyed -> unmounted, beforeDestroy -> beforeUnmount
This commit is contained in:
N-Pex 2025-05-13 16:12:05 +02:00
parent ae312db784
commit 2c5b386af9
18 changed files with 20 additions and 20 deletions

View file

@ -50,7 +50,7 @@ export default {
this.reactions = this.timelineSet.relations.getChildEventsForEvent(this.event.getId(), 'm.annotation', 'm.reaction');
this.event.on("Event.relationsCreated", this.onRelationsCreated);
},
beforeDestroy() {
beforeUnmount() {
this.event.off("Event.relationsCreated", this.onRelationsCreated);
if (this.reactions) {
this.reactions.off('Relations.add', this.onAddRelation);