MCPcopy Create free account
hub / github.com/Lobos/react-ui / componentWillReceiveProps

Method componentWillReceiveProps

src/higherOrders/Fetch.js:60–67  ·  view source on GitHub ↗
(nextProps)

Source from the content-addressed store, hash-verified

58 }
59
60 componentWillReceiveProps (nextProps) {
61 if (!deepEqual(this.props.data, nextProps.data)) {
62 this.handleData(nextProps.data);
63 }
64 if (!deepEqual(this.props.fetch, nextProps.fetch)) {
65 this.fetchData(nextProps.fetch);
66 }
67 }
68
69 componentWillUnmount () {
70 this._isMounted = false;

Callers

nothing calls this directly

Calls 3

handleDataMethod · 0.95
fetchDataMethod · 0.95
deepEqualFunction · 0.85

Tested by

no test coverage detected