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

Method constructor

src/react-list.js:111–123  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

109 }
110
111 constructor(props) {
112 super(props);
113 this.state = constrain(props, {
114 itemsPerRow: 1,
115 from: props.initialIndex,
116 size: 0
117 });
118 this.cache = {};
119 this.cachedScrollPosition = null;
120 this.prevPrevState = {};
121 this.unstable = false;
122 this.updateCounter = 0;
123 }
124
125 componentDidMount() {
126 this.updateFrameAndClearCache = this.updateFrameAndClearCache.bind(this);

Callers

nothing calls this directly

Calls 1

constrainFunction · 0.70

Tested by

no test coverage detected