forked from AkkomaGang/akkoma-fe
prevent infinite update loops
This commit is contained in:
parent
7d67e8f1cc
commit
68b4323181
1 changed files with 4 additions and 1 deletions
|
@ -33,7 +33,8 @@ const StatusContent = {
|
||||||
showingLongSubject: false,
|
showingLongSubject: false,
|
||||||
// not as computed because it sets the initial state which will be changed later
|
// not as computed because it sets the initial state which will be changed later
|
||||||
expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject,
|
expandingSubject: !this.$store.getters.mergedConfig.collapseMessageWithSubject,
|
||||||
postLength: this.status.text.length
|
postLength: this.status.text.length,
|
||||||
|
parseReadyDone: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -86,6 +87,8 @@ const StatusContent = {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onParseReady (event) {
|
onParseReady (event) {
|
||||||
|
if (this.parseReadyDone) return
|
||||||
|
this.parseReadyDone = true
|
||||||
this.$emit('parseReady', event)
|
this.$emit('parseReady', event)
|
||||||
const { writtenMentions, invisibleMentions } = event
|
const { writtenMentions, invisibleMentions } = event
|
||||||
writtenMentions
|
writtenMentions
|
||||||
|
|
Loading…
Reference in a new issue