MCPcopy Index your code
hub / github.com/Lobos/react-ui / componentWillReceiveProps

Method componentWillReceiveProps

src/FormControl.js:40–44  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

38 }
39
40 componentWillReceiveProps (nextProps) {
41 if (!shallowEqual(this.props, nextProps)) {
42 this.setItems(nextProps);
43 }
44 }
45
46 shouldComponentUpdate (nextProps, nextState) {
47 if (!shallowEqual(this.props, nextProps)) {

Callers

nothing calls this directly

Calls 2

setItemsMethod · 0.95
shallowEqualFunction · 0.90

Tested by

no test coverage detected