Skip to content

Commit 73683b5

Browse files
committed
Quiet some annoying & irrelevant resize observer errors
1 parent 620fcd2 commit 73683b5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/errors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function initSentry(dsn: string | undefined) {
1616
release: UI_VERSION,
1717
ignoreErrors: [
1818
'ResizeObserver loop limit exceeded', // No visible effect: https://stackoverflow.com/a/50387233/68051
19+
'ResizeObserver loop completed with undelivered notifications.'
1920
],
2021
beforeSend: function (event, hint) {
2122
const exception = hint?.originalException;

src/util/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function useSize(ref: React.RefObject<HTMLElement>, defaultValue: number)
166166
if (container) {
167167
setSpaceAvailable(container.clientWidth);
168168
} else {
169-
logError("Element resized, but no ref available");
169+
console.warn("Element resized, but no ref available");
170170
}
171171
});
172172

0 commit comments

Comments
 (0)