MCPcopy Index your code
hub / github.com/bvaughn/react-window / observe

Method observe

lib/utils/test/mockResizeObserver.ts:84–91  ·  view source on GitHub ↗
(element: HTMLElement)

Source from the content-addressed store, hash-verified

82 }
83
84 observe(element: HTMLElement) {
85 if (this.#disconnected) {
86 return;
87 }
88
89 this.#elements.add(element);
90 this.#notify([element]);
91 }
92
93 unobserve(element: HTMLElement) {
94 this.#elements.delete(element);

Callers 3

useDynamicRowHeightFunction · 0.80
useResizeObserverFunction · 0.80
LayoutShiftDetecterFunction · 0.80

Calls 1

#notifyMethod · 0.95

Tested by

no test coverage detected