From 48421b223c4503d729f6327b1f25a0f2950f42f2 Mon Sep 17 00:00:00 2001 From: birdxiao Date: Tue, 20 Feb 2024 17:38:42 +0800 Subject: [PATCH] fix(useResizeObserver): do not watch deep to avoid cicular calls (#3753) Co-authored-by: birdxiao Co-authored-by: Anthony Fu --- packages/core/useResizeObserver/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/useResizeObserver/index.ts b/packages/core/useResizeObserver/index.ts index 4fd701c6aea..bccab2ce0c5 100644 --- a/packages/core/useResizeObserver/index.ts +++ b/packages/core/useResizeObserver/index.ts @@ -77,7 +77,7 @@ export function useResizeObserver( _el && observer!.observe(_el, observerOptions) } }, - { immediate: true, flush: 'post', deep: true }, + { immediate: true, flush: 'post' }, ) const stop = () => {