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

Method maybeSetState

src/react-list.js:153–157  ·  view source on GitHub ↗
(b, cb)

Source from the content-addressed store, hash-verified

151 }
152
153 maybeSetState(b, cb) {
154 if (isEqualSubset(this.state, b)) return cb();
155
156 this.setState(b, cb);
157 }
158
159 componentWillUnmount() {
160 window.removeEventListener('resize', this.updateFrameAndClearCache);

Callers 5

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

Calls 1

isEqualSubsetFunction · 0.70

Tested by

no test coverage detected