MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / clear

Method clear

lib/components/CellMeasurer/types.ts:202–202  ·  view source on GitHub ↗

* Reset cached measurements for a specific cell. * * This should be called when a cell needs to be re-measured to handle dynamic content * (e.g. replacing a loading indicator with loaded content, or reacting to state changes for stateful cells). * `columnIndex` defaults to `0`.

(rowIndex: number, columnIndex?: number)

Source from the content-addressed store, hash-verified

200 * `columnIndex` defaults to `0`.
201 */
202 clear(rowIndex: number, columnIndex?: number): void;
203
204 /**
205 * Reset cached measurements for all cells.

Callers 7

clearMethod · 0.65
mockResizeObserverFunction · 0.65
disconnectMethod · 0.65
scrollElement.tsFile · 0.65
toggleFunction · 0.65

Implementers 1

CellMeasurerCachelib/components/CellMeasurer/CellMeasur

Calls

no outgoing calls

Tested by

no test coverage detected