Skip to content

Commit

Permalink
fix(useResizeObserver): do not watch deep to avoid cicular calls (#3753)
Browse files Browse the repository at this point in the history
Co-authored-by: birdxiao <birdxiao@tencent.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
3 people committed Feb 20, 2024
1 parent ce9bbec commit 48421b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useResizeObserver/index.ts
Expand Up @@ -77,7 +77,7 @@ export function useResizeObserver(
_el && observer!.observe(_el, observerOptions)
}
},
{ immediate: true, flush: 'post', deep: true },
{ immediate: true, flush: 'post' },
)

const stop = () => {
Expand Down

0 comments on commit 48421b2

Please sign in to comment.