in Vue.JS by

When is the ‘updated’ lifecycle hook called?

▼ Show 1 Answer

0 votes

The updated hook is called after reactive data is updated and the virtual DOM is re-rendered. It can be used to perform DOM related operations, however, there is no guarantee (by default) that child components would’ve rendered, though that can be ensured as well by using this.$nextTick inside the updated function

Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell
  • #vue
  • #vue-installation
  • #vuejs
0 votes
asked Nov 1, 2020 in MongoDB by SakshiSharma