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

Method invalidateCellSizeAfterRender

source/Masonry/Masonry.js:110–124  ·  view source on GitHub ↗
({rowIndex: index})

Source from the content-addressed store, hash-verified

108
109 // HACK This method signature was intended for Grid
110 invalidateCellSizeAfterRender({rowIndex: index}) {
111 if (this._invalidateOnUpdateStartIndex === null) {
112 this._invalidateOnUpdateStartIndex = index;
113 this._invalidateOnUpdateStopIndex = index;
114 } else {
115 this._invalidateOnUpdateStartIndex = Math.min(
116 this._invalidateOnUpdateStartIndex,
117 index,
118 );
119 this._invalidateOnUpdateStopIndex = Math.max(
120 this._invalidateOnUpdateStopIndex,
121 index,
122 );
123 }
124 }
125
126 recomputeCellPositions() {
127 const stopIndex = this._positionCache.count - 1;

Callers 1

MultiGrid.jest.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected