Skip to content

Instantly share code, notes, and snippets.

@petyosi
Created February 8, 2022 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petyosi/42da5d76912f8a1cab266a4d33277019 to your computer and use it in GitHub Desktop.
Save petyosi/42da5d76912f8a1cab266a4d33277019 to your computer and use it in GitHub Desktop.
Ignores error caused by nested resizing
window.addEventListener("error", (e) => {
if (
e.message ===
"ResizeObserver loop completed with undelivered notifications." ||
e.message === "ResizeObserver loop limit exceeded"
) {
e.stopImmediatePropagation();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment