diff --git a/src/components/StoryblokRichText.vue b/src/components/StoryblokRichText.vue index 6873616..fd556a9 100644 --- a/src/components/StoryblokRichText.vue +++ b/src/components/StoryblokRichText.vue @@ -12,13 +12,14 @@ const props = defineProps(); const renderedDoc = ref(); const root = () => renderedDoc.value; -watch(props.doc, (doc) => { +watch([() => props.doc, () => props.resolvers], ([doc, resolvers]) => { const { render } = useStoryblokRichText({ - resolvers: (props.resolvers as StoryblokRichTextResolvers) ?? {}, + resolvers: (resolvers as StoryblokRichTextResolvers) ?? {}, }); renderedDoc.value = render(doc as StoryblokRichTextNode); }, { immediate: true, + deep: true, });