[Vuejs]-VueJS โ€“ manipulate DOM after computed

0๐Ÿ‘

โœ…

If you will return a promise from your getComments action, you could do:

this.$store
  .dispatch('getComments', this.post)
  .then(() => {
    cleanUnwantedLinks()
    /* 
    Can also try wrapping your call in $nextTick
    this.$nextTick(() => { cleanUnwantedLinks() })
    */
  });

Leave a comment