Categories
Vue Answers

How to force Vue.js to reload or re-render?

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *