(prevProps)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected