(props)
| 22 | static reactHotLoadable = false; |
| 23 | |
| 24 | constructor(props) { |
| 25 | super(props); |
| 26 | if (configuration.showReactDomPatchNotification) { |
| 27 | configuration.showReactDomPatchNotification = false; |
| 28 | console.warn('React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work.'); |
| 29 | } |
| 30 | |
| 31 | this.state = { |
| 32 | error: null, |
| 33 | errorInfo: null, |
| 34 | // eslint-disable-next-line react/no-unused-state |
| 35 | generation: 0, |
| 36 | }; |
| 37 | } |
| 38 | |
| 39 | shouldComponentUpdate(prevProps, prevState) { |
| 40 | // Don't update the component if the state had an error and still has one. |
nothing calls this directly
no outgoing calls
no test coverage detected