Add an observer to the ResizeObserver.
Note that this prevents double-observing so the same handler can be added to the same element multiple times and you will only get a single callback.
Remove an observer from the ResizeObserver
Generated using TypeDoc
The SharedResizeObserver provides a ResizeObserver that can be shared amongst many elements and handlers.
It's more efficient to run a single ResizeObserver with many observations than many ResizeObservers. A singleton of the SharedResizeObserver can be passed down through any element that needs resize observation and get a
handleResize()callback