Menu

"ResizeObserver Loop Completed With Undelivered Notifications" Has No Stack Trace Because It Was Never Thrown
📰

"ResizeObserver Loop Completed With Undelivered Notifications" Has No Stack Trace Because It Was Never Thrown

DEV Community: css·Vladimir Elchinov·12 days ago
#a7NUgnWm
#devtocss#devto#dev#message#error
Long article (714 words) — no AI summary yet.
Reading 0:00
15s threshold

If your error tracker has a top ten, this message is probably in it:

ResizeObserver loop completed with undelivered notifications.

Enter fullscreen mode

Exit fullscreen mode

No stack trace. No file, or a file that points at nothing useful. Thousands of occurrences, no user ever complaining. Most teams eventually add it to an ignore list and move on, and most of the time that is the right call. The trouble is the time it is not, and the ignore list cannot tell the difference.

Nothing threw it

The message is not an exception from your code or from a library. It is defined, word for word, in the Resize Observer specification, in an algorithm called "deliver resize loop error notification":

Create a new ErrorEvent. Initialize event's message slot to "ResizeObserver loop completed with undelivered notifications.". Report the exception event.

That is the whole algorithm. The browser builds an error event, sets its message and nothing else, and reports it the way it reports an uncaught exception.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.