MCPcopy Create free account
hub / github.com/gaearon/react-hot-loader / constructor

Method constructor

src/AppContainer.dev.js:24–37  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected