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

Method componentDidMount

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

Source from the content-addressed store, hash-verified

123 }
124
125 componentDidMount() {
126 this.updateFrameAndClearCache = this.updateFrameAndClearCache.bind(this);
127 window.addEventListener('resize', this.updateFrameAndClearCache);
128 this.updateFrame(this.scrollTo.bind(this, this.props.initialIndex));
129 }
130
131 componentDidUpdate(prevProps) {
132 // Viewport scroll is no longer useful if axis changes

Callers 3

index.jsFile · 0.80

Calls 1

updateFrameMethod · 0.95

Tested by

no test coverage detected