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 — Track Owner for Server Components in DEV (#28753) · react/react@75004cd

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • compiled/facebook-www
    • JSXDEVRuntime-dev.classic.js
    • JSXDEVRuntime-dev.modern.js
    • REVISION
    • React-dev.classic.js
    • React-dev.modern.js
    • ReactART-dev.classic.js
    • ReactART-dev.modern.js
    • ReactART-prod.classic.js
    • ReactART-prod.modern.js
    • ReactDOM-dev.classic.js
    • ReactDOM-dev.modern.js
    • ReactDOM-prod.classic.js
    • ReactDOM-prod.modern.js
    • ReactDOM-profiling.classic.js
    • ReactDOM-profiling.modern.js
    • ReactDOMServer-dev.classic.js
    • ReactDOMServer-dev.modern.js
    • ReactDOMServer-prod.classic.js
    • ReactDOMServer-prod.modern.js
    • ReactDOMServerStreaming-dev.modern.js
    • ReactDOMServerStreaming-prod.modern.js
    • ReactDOMTesting-dev.classic.js
    • ReactDOMTesting-dev.modern.js
    • ReactDOMTesting-prod.classic.js
    • ReactDOMTesting-prod.modern.js
    • ReactFlightDOMClient-dev.modern.js
    • ReactFlightDOMServer-dev.modern.js
    • ReactServer-dev.modern.js
    • ReactTestRenderer-dev.classic.js
    • ReactTestRenderer-dev.modern.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎compiled/facebook-www/JSXDEVRuntime-dev.classic.js‎

Copy file name to clipboardExpand all lines: compiled/facebook-www/JSXDEVRuntime-dev.classic.js
+16-20Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ if (__DEV__) {
488488

489489
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
490490
var prefix;
491-
function describeBuiltInComponentFrame(name, ownerFn) {
491+
function describeBuiltInComponentFrame(name) {
492492
{
493493
if (prefix === undefined) {
494494
// Extract the VM specific prefix used by each line.
@@ -757,7 +757,7 @@ if (__DEV__) {
757757

758758
return syntheticFrame;
759759
}
760-
function describeFunctionComponentFrame(fn, ownerFn) {
760+
function describeFunctionComponentFrame(fn) {
761761
{
762762
return describeNativeComponentFrame(fn, false);
763763
}
@@ -768,7 +768,7 @@ if (__DEV__) {
768768
return !!(prototype && prototype.isReactComponent);
769769
}
770770

771-
function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
771+
function describeUnknownElementTypeFrameInDEV(type) {
772772
if (type == null) {
773773
return "";
774774
}
@@ -798,7 +798,7 @@ if (__DEV__) {
798798

799799
case REACT_MEMO_TYPE:
800800
// Memo may contain any component type so we recursively resolve it.
801-
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
801+
return describeUnknownElementTypeFrameInDEV(type.type);
802802

803803
case REACT_LAZY_TYPE: {
804804
var lazyComponent = type;
@@ -807,10 +807,7 @@ if (__DEV__) {
807807

808808
try {
809809
// Lazy may contain any component type so we recursively resolve it.
810-
return describeUnknownElementTypeFrameInDEV(
811-
init(payload),
812-
ownerFn
813-
);
810+
return describeUnknownElementTypeFrameInDEV(init(payload));
814811
} catch (x) {}
815812
}
816813
}
@@ -862,7 +859,6 @@ if (__DEV__) {
862859
function getContextName(type) {
863860
return type.displayName || "Context";
864861
}
865-
866862
function getComponentNameFromFiber(fiber) {
867863
var tag = fiber.tag,
868864
type = fiber.type;
@@ -1578,14 +1574,18 @@ if (__DEV__) {
15781574

15791575
if (
15801576
element &&
1581-
element._owner &&
1577+
element._owner != null &&
15821578
element._owner !== ReactCurrentOwner.current
15831579
) {
1584-
// Give the component that originally created this child.
1585-
childOwner =
1586-
" It was passed a child from " +
1587-
getComponentNameFromType(element._owner.type) +
1588-
".";
1580+
var ownerName = null;
1581+
1582+
if (typeof element._owner.tag === "number") {
1583+
ownerName = getComponentNameFromType(element._owner.type);
1584+
} else if (typeof element._owner.name === "string") {
1585+
ownerName = element._owner.name;
1586+
} // Give the component that originally created this child.
1587+
1588+
childOwner = " It was passed a child from " + ownerName + ".";
15891589
}
15901590

15911591
setCurrentlyValidatingElement(element);
@@ -1604,11 +1604,7 @@ if (__DEV__) {
16041604
function setCurrentlyValidatingElement(element) {
16051605
{
16061606
if (element) {
1607-
var owner = element._owner;
1608-
var stack = describeUnknownElementTypeFrameInDEV(
1609-
element.type,
1610-
owner ? owner.type : null
1611-
);
1607+
var stack = describeUnknownElementTypeFrameInDEV(element.type);
16121608
ReactDebugCurrentFrame.setExtraStackFrame(stack);
16131609
} else {
16141610
ReactDebugCurrentFrame.setExtraStackFrame(null);
Collapse file

‎compiled/facebook-www/JSXDEVRuntime-dev.modern.js‎

Copy file name to clipboardExpand all lines: compiled/facebook-www/JSXDEVRuntime-dev.modern.js
+16-20Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ if (__DEV__) {
488488

489489
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
490490
var prefix;
491-
function describeBuiltInComponentFrame(name, ownerFn) {
491+
function describeBuiltInComponentFrame(name) {
492492
{
493493
if (prefix === undefined) {
494494
// Extract the VM specific prefix used by each line.
@@ -757,7 +757,7 @@ if (__DEV__) {
757757

758758
return syntheticFrame;
759759
}
760-
function describeFunctionComponentFrame(fn, ownerFn) {
760+
function describeFunctionComponentFrame(fn) {
761761
{
762762
return describeNativeComponentFrame(fn, false);
763763
}
@@ -768,7 +768,7 @@ if (__DEV__) {
768768
return !!(prototype && prototype.isReactComponent);
769769
}
770770

771-
function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
771+
function describeUnknownElementTypeFrameInDEV(type) {
772772
if (type == null) {
773773
return "";
774774
}
@@ -798,7 +798,7 @@ if (__DEV__) {
798798

799799
case REACT_MEMO_TYPE:
800800
// Memo may contain any component type so we recursively resolve it.
801-
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
801+
return describeUnknownElementTypeFrameInDEV(type.type);
802802

803803
case REACT_LAZY_TYPE: {
804804
var lazyComponent = type;
@@ -807,10 +807,7 @@ if (__DEV__) {
807807

808808
try {
809809
// Lazy may contain any component type so we recursively resolve it.
810-
return describeUnknownElementTypeFrameInDEV(
811-
init(payload),
812-
ownerFn
813-
);
810+
return describeUnknownElementTypeFrameInDEV(init(payload));
814811
} catch (x) {}
815812
}
816813
}
@@ -862,7 +859,6 @@ if (__DEV__) {
862859
function getContextName(type) {
863860
return type.displayName || "Context";
864861
}
865-
866862
function getComponentNameFromFiber(fiber) {
867863
var tag = fiber.tag,
868864
type = fiber.type;
@@ -1580,14 +1576,18 @@ if (__DEV__) {
15801576

15811577
if (
15821578
element &&
1583-
element._owner &&
1579+
element._owner != null &&
15841580
element._owner !== ReactCurrentOwner.current
15851581
) {
1586-
// Give the component that originally created this child.
1587-
childOwner =
1588-
" It was passed a child from " +
1589-
getComponentNameFromType(element._owner.type) +
1590-
".";
1582+
var ownerName = null;
1583+
1584+
if (typeof element._owner.tag === "number") {
1585+
ownerName = getComponentNameFromType(element._owner.type);
1586+
} else if (typeof element._owner.name === "string") {
1587+
ownerName = element._owner.name;
1588+
} // Give the component that originally created this child.
1589+
1590+
childOwner = " It was passed a child from " + ownerName + ".";
15911591
}
15921592

15931593
setCurrentlyValidatingElement(element);
@@ -1606,11 +1606,7 @@ if (__DEV__) {
16061606
function setCurrentlyValidatingElement(element) {
16071607
{
16081608
if (element) {
1609-
var owner = element._owner;
1610-
var stack = describeUnknownElementTypeFrameInDEV(
1611-
element.type,
1612-
owner ? owner.type : null
1613-
);
1609+
var stack = describeUnknownElementTypeFrameInDEV(element.type);
16141610
ReactDebugCurrentFrame.setExtraStackFrame(stack);
16151611
} else {
16161612
ReactDebugCurrentFrame.setExtraStackFrame(null);
Collapse file

‎compiled/facebook-www/REVISION‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e3ebcd54b98a4f8f5a9f7e63982fa75578b648ed
1+
f33a6b69c6cb406ea0cc51d07bc4d3fd2d8d8744
Collapse file

‎compiled/facebook-www/React-dev.classic.js‎

Copy file name to clipboardExpand all lines: compiled/facebook-www/React-dev.classic.js
+17-21Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "19.0.0-www-classic-943a0b57";
27+
var ReactVersion = "19.0.0-www-classic-ff21e352";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -860,7 +860,7 @@ if (__DEV__) {
860860

861861
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
862862
var prefix;
863-
function describeBuiltInComponentFrame(name, ownerFn) {
863+
function describeBuiltInComponentFrame(name) {
864864
{
865865
if (prefix === undefined) {
866866
// Extract the VM specific prefix used by each line.
@@ -1129,7 +1129,7 @@ if (__DEV__) {
11291129

11301130
return syntheticFrame;
11311131
}
1132-
function describeFunctionComponentFrame(fn, ownerFn) {
1132+
function describeFunctionComponentFrame(fn) {
11331133
{
11341134
return describeNativeComponentFrame(fn, false);
11351135
}
@@ -1140,7 +1140,7 @@ if (__DEV__) {
11401140
return !!(prototype && prototype.isReactComponent);
11411141
}
11421142

1143-
function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1143+
function describeUnknownElementTypeFrameInDEV(type) {
11441144
if (type == null) {
11451145
return "";
11461146
}
@@ -1170,7 +1170,7 @@ if (__DEV__) {
11701170

11711171
case REACT_MEMO_TYPE:
11721172
// Memo may contain any component type so we recursively resolve it.
1173-
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
1173+
return describeUnknownElementTypeFrameInDEV(type.type);
11741174

11751175
case REACT_LAZY_TYPE: {
11761176
var lazyComponent = type;
@@ -1179,10 +1179,7 @@ if (__DEV__) {
11791179

11801180
try {
11811181
// Lazy may contain any component type so we recursively resolve it.
1182-
return describeUnknownElementTypeFrameInDEV(
1183-
init(payload),
1184-
ownerFn
1185-
);
1182+
return describeUnknownElementTypeFrameInDEV(init(payload));
11861183
} catch (x) {}
11871184
}
11881185
}
@@ -1234,7 +1231,6 @@ if (__DEV__) {
12341231
function getContextName(type) {
12351232
return type.displayName || "Context";
12361233
}
1237-
12381234
function getComponentNameFromFiber(fiber) {
12391235
var tag = fiber.tag,
12401236
type = fiber.type;
@@ -2302,14 +2298,18 @@ if (__DEV__) {
23022298

23032299
if (
23042300
element &&
2305-
element._owner &&
2301+
element._owner != null &&
23062302
element._owner !== ReactCurrentOwner.current
23072303
) {
2308-
// Give the component that originally created this child.
2309-
childOwner =
2310-
" It was passed a child from " +
2311-
getComponentNameFromType(element._owner.type) +
2312-
".";
2304+
var ownerName = null;
2305+
2306+
if (typeof element._owner.tag === "number") {
2307+
ownerName = getComponentNameFromType(element._owner.type);
2308+
} else if (typeof element._owner.name === "string") {
2309+
ownerName = element._owner.name;
2310+
} // Give the component that originally created this child.
2311+
2312+
childOwner = " It was passed a child from " + ownerName + ".";
23132313
}
23142314

23152315
setCurrentlyValidatingElement(element);
@@ -2328,11 +2328,7 @@ if (__DEV__) {
23282328
function setCurrentlyValidatingElement(element) {
23292329
{
23302330
if (element) {
2331-
var owner = element._owner;
2332-
var stack = describeUnknownElementTypeFrameInDEV(
2333-
element.type,
2334-
owner ? owner.type : null
2335-
);
2331+
var stack = describeUnknownElementTypeFrameInDEV(element.type);
23362332
ReactDebugCurrentFrame.setExtraStackFrame(stack);
23372333
} else {
23382334
ReactDebugCurrentFrame.setExtraStackFrame(null);
Collapse file

‎compiled/facebook-www/React-dev.modern.js‎

Copy file name to clipboardExpand all lines: compiled/facebook-www/React-dev.modern.js
+17-21Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (__DEV__) {
2424
) {
2525
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
2626
}
27-
var ReactVersion = "19.0.0-www-modern-77bd3ad6";
27+
var ReactVersion = "19.0.0-www-modern-99738e97";
2828

2929
// ATTENTION
3030
// When adding new symbols to this file,
@@ -860,7 +860,7 @@ if (__DEV__) {
860860

861861
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
862862
var prefix;
863-
function describeBuiltInComponentFrame(name, ownerFn) {
863+
function describeBuiltInComponentFrame(name) {
864864
{
865865
if (prefix === undefined) {
866866
// Extract the VM specific prefix used by each line.
@@ -1129,7 +1129,7 @@ if (__DEV__) {
11291129

11301130
return syntheticFrame;
11311131
}
1132-
function describeFunctionComponentFrame(fn, ownerFn) {
1132+
function describeFunctionComponentFrame(fn) {
11331133
{
11341134
return describeNativeComponentFrame(fn, false);
11351135
}
@@ -1140,7 +1140,7 @@ if (__DEV__) {
11401140
return !!(prototype && prototype.isReactComponent);
11411141
}
11421142

1143-
function describeUnknownElementTypeFrameInDEV(type, ownerFn) {
1143+
function describeUnknownElementTypeFrameInDEV(type) {
11441144
if (type == null) {
11451145
return "";
11461146
}
@@ -1170,7 +1170,7 @@ if (__DEV__) {
11701170

11711171
case REACT_MEMO_TYPE:
11721172
// Memo may contain any component type so we recursively resolve it.
1173-
return describeUnknownElementTypeFrameInDEV(type.type, ownerFn);
1173+
return describeUnknownElementTypeFrameInDEV(type.type);
11741174

11751175
case REACT_LAZY_TYPE: {
11761176
var lazyComponent = type;
@@ -1179,10 +1179,7 @@ if (__DEV__) {
11791179

11801180
try {
11811181
// Lazy may contain any component type so we recursively resolve it.
1182-
return describeUnknownElementTypeFrameInDEV(
1183-
init(payload),
1184-
ownerFn
1185-
);
1182+
return describeUnknownElementTypeFrameInDEV(init(payload));
11861183
} catch (x) {}
11871184
}
11881185
}
@@ -1234,7 +1231,6 @@ if (__DEV__) {
12341231
function getContextName(type) {
12351232
return type.displayName || "Context";
12361233
}
1237-
12381234
function getComponentNameFromFiber(fiber) {
12391235
var tag = fiber.tag,
12401236
type = fiber.type;
@@ -2304,14 +2300,18 @@ if (__DEV__) {
23042300

23052301
if (
23062302
element &&
2307-
element._owner &&
2303+
element._owner != null &&
23082304
element._owner !== ReactCurrentOwner.current
23092305
) {
2310-
// Give the component that originally created this child.
2311-
childOwner =
2312-
" It was passed a child from " +
2313-
getComponentNameFromType(element._owner.type) +
2314-
".";
2306+
var ownerName = null;
2307+
2308+
if (typeof element._owner.tag === "number") {
2309+
ownerName = getComponentNameFromType(element._owner.type);
2310+
} else if (typeof element._owner.name === "string") {
2311+
ownerName = element._owner.name;
2312+
} // Give the component that originally created this child.
2313+
2314+
childOwner = " It was passed a child from " + ownerName + ".";
23152315
}
23162316

23172317
setCurrentlyValidatingElement(element);
@@ -2330,11 +2330,7 @@ if (__DEV__) {
23302330
function setCurrentlyValidatingElement(element) {
23312331
{
23322332
if (element) {
2333-
var owner = element._owner;
2334-
var stack = describeUnknownElementTypeFrameInDEV(
2335-
element.type,
2336-
owner ? owner.type : null
2337-
);
2333+
var stack = describeUnknownElementTypeFrameInDEV(element.type);
23382334
ReactDebugCurrentFrame.setExtraStackFrame(stack);
23392335
} else {
23402336
ReactDebugCurrentFrame.setExtraStackFrame(null);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.