MCPcopy Create free account
hub / github.com/docker/getting-started / componentWillUpdate

Function componentWillUpdate

app/src/static/js/react-bootstrap.js:8008–8020  ·  view source on GitHub ↗
(nextProps, nextState)

Source from the content-addressed store, hash-verified

8006}
8007
8008function componentWillUpdate(nextProps, nextState) {
8009 try {
8010 var prevProps = this.props;
8011 var prevState = this.state;
8012 this.props = nextProps;
8013 this.state = nextState;
8014 this.__reactInternalSnapshotFlag = true;
8015 this.__reactInternalSnapshot = this.getSnapshotBeforeUpdate(prevProps, prevState);
8016 } finally {
8017 this.props = prevProps;
8018 this.state = prevState;
8019 }
8020} // React may warn about cWM/cWRP/cWU methods being deprecated.
8021// Add a flag to suppress these warnings for this special case.
8022
8023

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…