@@ -958,7 +958,7 @@ export function attach(
958
958
959
959
// NOTICE Keep in sync with get*ForFiber methods
960
960
function shouldFilterFiber ( fiber : Fiber ) : boolean {
961
- const { _debugSource , tag , type , key } = fiber;
961
+ const { tag , type , key } = fiber;
962
962
963
963
switch (tag) {
964
964
case DehydratedSuspenseComponent :
@@ -1010,15 +1010,15 @@ export function attach(
1010
1010
}
1011
1011
}
1012
1012
1013
- if (_debugSource != null && hideElementsWithPaths . size > 0 ) {
1014
- const { fileName } = _debugSource;
1015
- // eslint-disable-next-line no-for-of-loops/no-for-of-loops
1016
- for (const pathRegExp of hideElementsWithPaths) {
1017
- if ( pathRegExp . test ( fileName ) ) {
1018
- return true ;
1019
- }
1020
- }
1021
- }
1013
+ // TODO: Figure out a way to filter by path in the new model which has no debug info.
1014
+ // if (hideElementsWithPaths.size > 0 ) {
1015
+ // const {fileName} = ...;
1016
+ // for (const pathRegExp of hideElementsWithPaths) {
1017
+ // if (pathRegExp.test(fileName)) {
1018
+ // return true;
1019
+ // }
1020
+ // }
1021
+ // }
1022
1022
1023
1023
return false ;
1024
1024
}
@@ -3132,7 +3132,6 @@ export function attach(
3132
3132
3133
3133
const {
3134
3134
_debugOwner ,
3135
- _debugSource,
3136
3135
stateNode,
3137
3136
key,
3138
3137
memoizedProps,
@@ -3362,9 +3361,6 @@ export function attach(
3362
3361
// List of owners
3363
3362
owners ,
3364
3363
3365
- // Location of component in source code.
3366
- source : _debugSource || null ,
3367
-
3368
3364
rootType ,
3369
3365
rendererPackageName : renderer . rendererPackageName ,
3370
3366
rendererVersion : renderer . version ,
@@ -3725,9 +3721,6 @@ export function attach(
3725
3721
if (nativeNodes !== null) {
3726
3722
console . log ( 'Nodes:' , nativeNodes ) ;
3727
3723
}
3728
- if (result.source !== null) {
3729
- console . log ( 'Location:' , result . source ) ;
3730
- }
3731
3724
if (window.chrome || /firefox/i.test(navigator.userAgent)) {
3732
3725
console . log (
3733
3726
'Right-click any value to save it as a global variable for further inspection.' ,
0 commit comments