MCPcopy Create free account
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 7

useDynamicRowHeightFunction · 0.80
observeFunction · 0.80
useVirtualizerFunction · 0.80
useResizeObserverFunction · 0.80
AnimatedListFunction · 0.80
LayoutShiftDetectorFunction · 0.80
headless.spec.tsxFile · 0.80

Calls 1

#notifyMethod · 0.95

Tested by

no test coverage detected