We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a99ee4 commit 6b22037Copy full SHA for 6b22037
1 file changed
src/hooks/useBoundingClientRect.ts
@@ -55,9 +55,10 @@ export function useBoundingClientRect(
55
return;
56
}
57
58
- // @ts-expect-error 👉 https://github.com/facebook/react/commit/53b1f69ba
59
if (
+ // @ts-expect-error 👉 https://github.com/facebook/react/commit/53b1f69ba
60
ref.current.unstable_getBoundingClientRect !== null &&
61
62
typeof ref.current.unstable_getBoundingClientRect === 'function'
63
) {
64
// @ts-expect-error https://github.com/facebook/react/commit/53b1f69ba
0 commit comments