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

Function setGridRef

lib/utils/createInnerGridRef.ts:46–62  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

44 getGrid: () => grid,
45
46 setGridRef(value) {
47 grid = value;
48 if (grid === null) {
49 return;
50 }
51
52 if (pendingRecomputation !== null) {
53 const cell = pendingRecomputation;
54 pendingRecomputation = null;
55 grid.recomputeGridSize(cell);
56 }
57 if (pendingInvalidation !== null) {
58 const cell = pendingInvalidation;
59 pendingInvalidation = null;
60 grid.invalidateCellSizeAfterRender(cell);
61 }
62 },
63
64 invalidateCellSizeAfterRender(cell) {
65 if (grid !== null) {

Callers

nothing calls this directly

Calls 2

recomputeGridSizeMethod · 0.65

Tested by

no test coverage detected