diff --git a/src/vue-tweet.vue b/src/vue-tweet.vue index 13d0922..8931650 100644 --- a/src/vue-tweet.vue +++ b/src/vue-tweet.vue @@ -11,6 +11,7 @@ import { type PropType, nextTick, watch, + toRef, } from "vue"; const langs = [ @@ -198,8 +199,8 @@ onMounted(() => { renderTweet(); }); -watch(props, () => { - renderTweet(); +watch(toRef(props), renderTweet, { + deep: true, }); function renderTweet(): void {