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

Method shouldComponentUpdate

src/components/connect.js:235–237  ·  view source on GitHub ↗
(nextProps, nextState)

Source from the content-addressed store, hash-verified

233 }
234
235 shouldComponentUpdate(nextProps, nextState) {
236 return this.state.data !== nextState.data || !shallowEqual(this.props, nextProps)
237 }
238
239 componentWillUnmount() {
240 this.clearAllRefreshTimeouts()

Callers

nothing calls this directly

Calls 1

shallowEqualFunction · 0.85

Tested by

no test coverage detected