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

Function isNumericSizeChange

lib/components/MultiGrid/MultiGrid.tsx:100–107  ·  view source on GitHub ↗
(prevSize: CellSize, nextSize: CellSize)

Source from the content-addressed store, hash-verified

98const increment = (value: number) => value + 1;
99
100function isNumericSizeChange(prevSize: CellSize, nextSize: CellSize) {
101 // Function sizes aren't compared (inline functions would cause infinite loops);
102 // in that case the recompute methods should be used to inform of changes (as with Grid).
103 return (
104 (typeof prevSize === "number" || typeof nextSize === "number") &&
105 prevSize !== nextSize
106 );
107}
108
109// Total size of the first `count` columns (or rows)
110function getFixedCellsSize(size: CellSize, count: number): number {

Callers 1

onCommitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected