GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DevTools test shell tweaks (#17054) · react/react@22b2642

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/react-devtools-shell/src/app
    • console.js
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/react-devtools-shell/src/app/console.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-shell/src/app/console.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ function ignoreStrings(
1111
methodName: string,
1212
stringsToIgnore: Array<string>,
1313
): void {
14-
const originalMethod = console[methodName];
14+
// HACKY In the test harness, DevTools overrides the parent window's console.
15+
// Our test app code uses the iframe's console though.
16+
// To simulate a more accurate end-ot-end ienvironment,
17+
// the shell's console patching should pass through to the parent override methods.
18+
const originalMethod = window.parent.console[methodName];
19+
1520
console[methodName] = (...args) => {
1621
const maybeString = args[0];
1722
if (typeof maybeString === 'string') {
Collapse file

‎packages/react-devtools-shell/src/app/index.js‎

Copy file name to clipboardExpand all lines: packages/react-devtools-shell/src/app/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ignoreErrors([
3131
'Warning: Unsafe lifecycle methods',
3232
'Warning: %s is deprecated in StrictMode.', // findDOMNode
3333
]);
34-
ignoreWarnings(['Warning: componentWillReceiveProps is deprecated']);
34+
ignoreWarnings(['Warning: componentWillReceiveProps has been renamed']);
3535

3636
const roots = [];
3737

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.