MCPcopy Create free account
hub / github.com/caseywebdev/react-list / cacheSizes

Method cacheSizes

src/react-list.js:418–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

416 }
417
418 cacheSizes() {
419 const { cache } = this;
420 const { from } = this.state;
421 const itemEls = this.items.children;
422 const sizeKey = OFFSET_SIZE_KEYS[this.props.axis];
423 for (let i = 0, l = itemEls.length; i < l; ++i) {
424 cache[from + i] = itemEls[i][sizeKey];
425 }
426 }
427
428 getSizeOfItem(index) {
429 const { cache, items } = this;

Callers 3

updateVariableFrameMethod · 0.95
react-list.jsFile · 0.80
index.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected