Answers for "component refresh vue"

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language