Answers for "vue 3 re render component"

3

Vue.js force to reload re-render

this.$forceUpdate();
Posted by: Guest on July-03-2020
0

vue 3 re render component

<template>
  <component-to-re-render :key="componentKey" />
</template>

export default {
  data() {
    return {
      componentKey: 0,
    };
  },
  methods: {
    forceRerender() {
      this.componentKey += 1;
    }
  }
}
Posted by: Guest on August-12-2021
0

rerender a vue component

<template>
    <component-to-re-render :key="componentKey" />
</template>

export default {
  data() {
    return {
      componentKey: 0
    }
  },
  methods: {
    forceRerender() {
      this.componentKey += 1
    }
  }
}
Posted by: Guest on July-19-2021

Browse Popular Code Answers by Language