Sometimes, we want to force Vue.js to reload or re-render.
In this article, we’ll look at how to force Vue.js to reload or re-render.
How to force Vue.js to reload or re-render?
To force Vue.js to reload or re-render, we use the $forceUpdate
method.
For instance, we write
this.$forceUpdate();
to call this.$forceUpdate();
in our component to force the component to re-render.
Conclusion
To force Vue.js to reload or re-render, we use the $forceUpdate
method.