MCPcopy
hub / github.com/bvaughn/react-window / Example

Function Example

lib/components/list/List.test.tsx:588–603  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

586 let onRowsRendered: ReturnType<typeof vi.fn>;
587
588 function Example() {
589 const rowHeight = useDynamicRowHeight({
590 defaultRowHeight: 25
591 });
592 return (
593 <List
594 defaultHeight={100}
595 overscanCount={0}
596 onRowsRendered={onRowsRendered}
597 rowCount={10}
598 rowComponent={RowComponent}
599 rowHeight={rowHeight}
600 rowProps={EMPTY_OBJECT}
601 />
602 );
603 }
604
605 function setMockRowHeights(
606 indexToHeight: Map<number, number>,

Callers

nothing calls this directly

Calls 1

useDynamicRowHeightFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…