fix(nuxt): deeply watch island props (#24986)

This commit is contained in:
Julien Huang 2024-01-01 17:20:10 +01:00 committed by GitHub
parent 4d40e2e996
commit 219d1cd219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,7 +234,7 @@ export default defineComponent({
} }
if (import.meta.client) { if (import.meta.client) {
watch(props, debounce(() => fetchComponent(), 100)) watch(props, debounce(() => fetchComponent(), 100), { deep: true })
} }
if (import.meta.client && !nuxtApp.isHydrating && props.lazy) { if (import.meta.client && !nuxtApp.isHydrating && props.lazy) {