MCPcopy
hub / github.com/heroku/react-refetch / componentDidUpdate

Method componentDidUpdate

src/components/connect.js:229–233  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

227 }
228
229 componentDidUpdate(prevProps) {
230 if (dependsOnProps && !shallowEqual(omitChildren(this.props), omitChildren(prevProps))) {
231 this.refetchDataFromProps()
232 }
233 }
234
235 shouldComponentUpdate(nextProps, nextState) {
236 return this.state.data !== nextState.data || !shallowEqual(this.props, nextProps)

Callers

nothing calls this directly

Calls 3

refetchDataFromPropsMethod · 0.95
shallowEqualFunction · 0.85
omitChildrenFunction · 0.85

Tested by

no test coverage detected