MCPcopy
hub / github.com/ctrlplusb/react-sizeme / componentDidUpdate

Method componentDidUpdate

src/component.js:25–39  ·  view source on GitHub ↗
(prevProps)

Source from the content-addressed store, hash-verified

23 }
24
25 componentDidUpdate(prevProps) {
26 const {
27 children: prevChildren,
28 render: prevRender,
29 ...currentSizeMeConfig
30 } = this.props
31 const {
32 children: nextChildren,
33 render: nextRender,
34 ...prevSizeMeConfig
35 } = prevProps
36 if (!isShallowEqual(currentSizeMeConfig, prevSizeMeConfig)) {
37 this.createComponent(currentSizeMeConfig)
38 }
39 }
40
41 createComponent = (config) => {
42 this.SizeAware = withSize(config)(({ children }) => children)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected