[Vuejs]-Vue JS mutating prop with Alert component

0👍

So as @Jayem163 mentioned this alert occurs while I am trying to update child component alert variable show.
I occurs that this problem was in VueStrap component and after dismissing alert something like this happened :

watch: {
    show(val) {
      if (this._timeout) clearTimeout(this._timeout)
      if (val && Boolean(this.duration)) {
        this._timeout = setTimeout(() => {
          this.show = false; ---> this i changed to :this.$emit('update:show', false ); AND IT WORKS WITHOUT ERROR :)
        }, this.duration)
      }
    }
  }

Leave a comment