Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Hierarchy

  • SharedResizeObserverInterface

Implemented by

Index

Methods

addObserver

removeObserver

Generated using TypeDoc