The disconnect() method of the ResizeObserver interface unobserves all observed Element or SVGElement targets.
disconnect()
MDN Reference