MCPcopy
hub / github.com/bvaughn/react-virtualized / clear

Method clear

source/CellMeasurer/CellMeasurerCache.js:99–106  ·  view source on GitHub ↗
(rowIndex: number, columnIndex: number = 0)

Source from the content-addressed store, hash-verified

97 }
98
99 clear(rowIndex: number, columnIndex: number = 0) {
100 const key = this._keyMapper(rowIndex, columnIndex);
101
102 delete this._cellHeightCache[key];
103 delete this._cellWidthCache[key];
104
105 this._updateCachedColumnAndRowSizes(rowIndex, columnIndex);
106 }
107
108 clearAll() {
109 this._cellHeightCache = {};

Callers 2

Calls 1

Tested by

no test coverage detected