Skip to content

Commit 792868e

Browse files
committed
[DevTools] Fix inspected element scroll in Suspense tab (facebook#34355)
DiffTrain build for [b1b0955](facebook@b1b0955)
1 parent 663b9af commit 792868e

36 files changed

+140
-98
lines changed

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,23 @@ __DEV__ &&
271271
);
272272
}
273273
function validateChildKeys(node) {
274-
"object" === typeof node &&
275-
null !== node &&
276-
node.$$typeof === REACT_ELEMENT_TYPE &&
277-
node._store &&
278-
(node._store.validated = 1);
274+
isValidElement(node)
275+
? node._store && (node._store.validated = 1)
276+
: "object" === typeof node &&
277+
null !== node &&
278+
node.$$typeof === REACT_LAZY_TYPE &&
279+
("fulfilled" === node._payload.status
280+
? isValidElement(node._payload.value) &&
281+
node._payload.value._store &&
282+
(node._payload.value._store.validated = 1)
283+
: node._store && (node._store.validated = 1));
284+
}
285+
function isValidElement(object) {
286+
return (
287+
"object" === typeof object &&
288+
null !== object &&
289+
object.$$typeof === REACT_ELEMENT_TYPE
290+
);
279291
}
280292
var React = require("react"),
281293
dynamicFeatureFlags = require("ReactFeatureFlags"),

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

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,23 @@ __DEV__ &&
271271
);
272272
}
273273
function validateChildKeys(node) {
274-
"object" === typeof node &&
275-
null !== node &&
276-
node.$$typeof === REACT_ELEMENT_TYPE &&
277-
node._store &&
278-
(node._store.validated = 1);
274+
isValidElement(node)
275+
? node._store && (node._store.validated = 1)
276+
: "object" === typeof node &&
277+
null !== node &&
278+
node.$$typeof === REACT_LAZY_TYPE &&
279+
("fulfilled" === node._payload.status
280+
? isValidElement(node._payload.value) &&
281+
node._payload.value._store &&
282+
(node._payload.value._store.validated = 1)
283+
: node._store && (node._store.validated = 1));
284+
}
285+
function isValidElement(object) {
286+
return (
287+
"object" === typeof object &&
288+
null !== object &&
289+
object.$$typeof === REACT_ELEMENT_TYPE
290+
);
279291
}
280292
var React = require("react"),
281293
dynamicFeatureFlags = require("ReactFeatureFlags"),

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aad7c664ffbde52e5d8004b542d83d6d4b7a32a0
1+
b1b0955f2b34286a7408e58463f4cc429627f9a8
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
aad7c664ffbde52e5d8004b542d83d6d4b7a32a0
1+
b1b0955f2b34286a7408e58463f4cc429627f9a8

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,16 @@ __DEV__ &&
331331
return newKey;
332332
}
333333
function validateChildKeys(node) {
334-
isValidElement(node) && node._store && (node._store.validated = 1);
334+
isValidElement(node)
335+
? node._store && (node._store.validated = 1)
336+
: "object" === typeof node &&
337+
null !== node &&
338+
node.$$typeof === REACT_LAZY_TYPE &&
339+
("fulfilled" === node._payload.status
340+
? isValidElement(node._payload.value) &&
341+
node._payload.value._store &&
342+
(node._payload.value._store.validated = 1)
343+
: node._store && (node._store.validated = 1));
335344
}
336345
function isValidElement(object) {
337346
return (
@@ -1409,7 +1418,7 @@ __DEV__ &&
14091418
exports.useTransition = function () {
14101419
return resolveDispatcher().useTransition();
14111420
};
1412-
exports.version = "19.2.0-www-classic-aad7c664-20250829";
1421+
exports.version = "19.2.0-www-classic-b1b0955f-20250901";
14131422
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14141423
"function" ===
14151424
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,16 @@ __DEV__ &&
331331
return newKey;
332332
}
333333
function validateChildKeys(node) {
334-
isValidElement(node) && node._store && (node._store.validated = 1);
334+
isValidElement(node)
335+
? node._store && (node._store.validated = 1)
336+
: "object" === typeof node &&
337+
null !== node &&
338+
node.$$typeof === REACT_LAZY_TYPE &&
339+
("fulfilled" === node._payload.status
340+
? isValidElement(node._payload.value) &&
341+
node._payload.value._store &&
342+
(node._payload.value._store.validated = 1)
343+
: node._store && (node._store.validated = 1));
335344
}
336345
function isValidElement(object) {
337346
return (
@@ -1409,7 +1418,7 @@ __DEV__ &&
14091418
exports.useTransition = function () {
14101419
return resolveDispatcher().useTransition();
14111420
};
1412-
exports.version = "19.2.0-www-modern-aad7c664-20250829";
1421+
exports.version = "19.2.0-www-modern-b1b0955f-20250901";
14131422
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14141423
"function" ===
14151424
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-classic-aad7c664-20250829";
603+
exports.version = "19.2.0-www-classic-b1b0955f-20250901";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,4 +600,4 @@ exports.useSyncExternalStore = function (
600600
exports.useTransition = function () {
601601
return ReactSharedInternals.H.useTransition();
602602
};
603-
exports.version = "19.2.0-www-modern-aad7c664-20250829";
603+
exports.version = "19.2.0-www-modern-b1b0955f-20250901";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-classic-aad7c664-20250829";
607+
exports.version = "19.2.0-www-classic-b1b0955f-20250901";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ exports.useSyncExternalStore = function (
604604
exports.useTransition = function () {
605605
return ReactSharedInternals.H.useTransition();
606606
};
607-
exports.version = "19.2.0-www-modern-aad7c664-20250829";
607+
exports.version = "19.2.0-www-modern-b1b0955f-20250901";
608608
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609609
"function" ===
610610
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)