MCPcopy
hub / github.com/google-map-react/google-map-react / shouldComponentUpdate

Method shouldComponentUpdate

src/google_map.js:305–313  ·  view source on GitHub ↗
(nextProps, nextState)

Source from the content-addressed store, hash-verified

303 }
304
305 shouldComponentUpdate(nextProps, nextState) {
306 // draggable does not affect inner components
307 return (
308 !shallowEqual(
309 omit(this.props, ['draggable']),
310 omit(nextProps, ['draggable'])
311 ) || !shallowEqual(this.state, nextState)
312 );
313 }
314
315 componentDidUpdate(prevProps) {
316 if (process.env.NODE_ENV !== 'production') {

Callers

nothing calls this directly

Calls 2

shallowEqualFunction · 0.85
omitFunction · 0.85

Tested by

no test coverage detected