()
| 1254 | let onRowsRendered: ReturnType<typeof vi.fn>; |
| 1255 | |
| 1256 | function Example() { |
| 1257 | const rowHeight = useDynamicRowHeight({ |
| 1258 | defaultRowHeight: 25 |
| 1259 | }); |
| 1260 | return ( |
| 1261 | <List |
| 1262 | defaultHeight={100} |
| 1263 | overscanCount={0} |
| 1264 | onRowsRendered={onRowsRendered} |
| 1265 | rowCount={10} |
| 1266 | rowComponent={RowComponent} |
| 1267 | rowHeight={rowHeight} |
| 1268 | rowProps={EMPTY_OBJECT} |
| 1269 | /> |
| 1270 | ); |
| 1271 | } |
| 1272 | |
| 1273 | function setMockRowHeights( |
| 1274 | indexToHeight: Map<number, number>, |
nothing calls this directly
no test coverage detected