MCPcopy Index your code
hub / github.com/bvaughn/react-virtualized / registerCell

Method registerCell

source/Collection/SectionManager.js:93–99  ·  view source on GitHub ↗

Adds a cell to the appropriate Sections and registers it metadata for later retrievable.

({cellMetadatum, index}: RegisterCellParams)

Source from the content-addressed store, hash-verified

91
92 /** Adds a cell to the appropriate Sections and registers it metadata for later retrievable. */
93 registerCell({cellMetadatum, index}: RegisterCellParams) {
94 this._cellMetadata[index] = cellMetadatum;
95
96 this.getSections(cellMetadatum).forEach(section =>
97 section.addCellIndex({index}),
98 );
99 }
100}

Callers 2

initSectionManagerFunction · 0.95

Calls 2

getSectionsMethod · 0.95
addCellIndexMethod · 0.80

Tested by

no test coverage detected