tjdud0123 / vue_note

Vue.js 코드 메모
6 stars 2 forks source link

updated : props 변화 감지 후 리렌더링 감지못하는 문제 #12

Closed tjdud0123 closed 4 years ago

tjdud0123 commented 4 years ago

Note that updated does not guarantee that all child components have also been re-rendered. If you want to wait until the entire view has been re-rendered, you can use vm.$nextTick inside of updated

updated: function () {
  this.$nextTick(function () {
    // Code that will run only after the
    // entire view has been re-rendered
  })
}
tjdud0123 commented 4 years ago

블로그 포스팅 완료