We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ed100 commit 397b5aeCopy full SHA for 397b5ae
1 file changed
packages/react-error-overlay/src/index.js
@@ -167,3 +167,15 @@ window.__REACT_ERROR_OVERLAY_GLOBAL_HOOK__.iframeReady = function iframeReady()
167
isLoadingIframe = false;
168
updateIframeContent();
169
};
170
+
171
+var testFunc = function testFn() {};
172
+if ((testFunc.name || testFunc.toString()).indexOf('testFn') !== -1) {
173
+ console.warn(
174
+ 'It looks like you are using `react-error-overlay` in production. When ' +
175
+ 'deploying an application, `react-error-overlay` should be excluded ' +
176
+ 'as it is a heavy dependency meant for development.\n\n' +
177
+ 'Consider adding an error boundary to your tree to customize error ' +
178
+ 'handling behavior. See https://fb.me/react-error-boundaries for more ' +
179
+ 'information.'
180
+ );
181
+}
0 commit comments