Skip to content

Commit

Permalink
[Flight] Reject any new Chunks not yet discovered at the time of repo…
Browse files Browse the repository at this point in the history
…rtGlobalError (facebook#31851)

Same as facebook#31840 but for the Flight Client.

DiffTrain build for [a9bbe34](facebook@a9bbe34)
  • Loading branch information
pull[bot] committed Dec 19, 2024
1 parent 05d033a commit 6c71a5b
Show file tree
Hide file tree
Showing 34 changed files with 2,950 additions and 2,484 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
faf6c4dfdcd3c9b3862af6a3afcb3d80abd407c0
a9bbe34622885ef5667d33236d580fe7321c0d8b
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
faf6c4dfdcd3c9b3862af6a3afcb3d80abd407c0
a9bbe34622885ef5667d33236d580fe7321c0d8b
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-faf6c4df-20241218";
exports.version = "19.1.0-www-classic-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1942,7 +1942,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-faf6c4df-20241218";
exports.version = "19.1.0-www-modern-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-faf6c4df-20241218";
exports.version = "19.1.0-www-classic-a9bbe346-20241219";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-faf6c4df-20241218";
exports.version = "19.1.0-www-modern-a9bbe346-20241219";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-faf6c4df-20241218";
exports.version = "19.1.0-www-classic-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-faf6c4df-20241218";
exports.version = "19.1.0-www-modern-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
62 changes: 43 additions & 19 deletions compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,18 @@ __DEV__ &&
));
return skipToNode + debugInfo + propName;
}
function upgradeHydrationErrorsToRecoverable() {
var queuedErrors = hydrationErrors;
null !== queuedErrors &&
(null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = queuedErrors)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
queuedErrors
),
(hydrationErrors = null));
return queuedErrors;
}
function resetContextDependencies() {
lastContextDependency = currentlyRenderingFiber$1 = null;
isDisallowedContextReadInDEV = !1;
Expand Down Expand Up @@ -9013,9 +9025,7 @@ __DEV__ &&
(current.memoizedState.isDehydrated &&
0 === (workInProgress.flags & 256)) ||
((workInProgress.flags |= 1024),
null !== hydrationErrors &&
(queueRecoverableErrors(hydrationErrors),
(hydrationErrors = null))),
upgradeHydrationErrorsToRecoverable()),
bubbleProperties(workInProgress),
enableTransitionTracing &&
0 !== (workInProgress.subtreeFlags & 8192) &&
Expand Down Expand Up @@ -9160,9 +9170,12 @@ __DEV__ &&
fallthroughToNormalSuspensePath.treeBaseDuration));
fallthroughToNormalSuspensePath = !1;
} else
null !== hydrationErrors &&
(queueRecoverableErrors(hydrationErrors),
(hydrationErrors = null)),
(fallthroughToNormalSuspensePath =
upgradeHydrationErrorsToRecoverable()),
null !== current &&
null !== current.memoizedState &&
(current.memoizedState.hydrationErrors =
fallthroughToNormalSuspensePath),
(fallthroughToNormalSuspensePath = !0);
if (!fallthroughToNormalSuspensePath) {
if (workInProgress.flags & 256)
Expand Down Expand Up @@ -11696,6 +11709,14 @@ __DEV__ &&
committedTransitions
);
break;
case 13:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
finishedRoot,
Expand Down Expand Up @@ -12434,7 +12455,13 @@ __DEV__ &&
}
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
null !== exitStatus &&
(null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = exitStatus)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
exitStatus
));
}
exitStatus = renderWasConcurrent;
}
Expand Down Expand Up @@ -12571,14 +12598,6 @@ __DEV__ &&
} while (1);
ensureRootIsScheduled(root);
}
function queueRecoverableErrors(errors) {
null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = errors)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
errors
);
}
function commitRootWhenReady(
root,
finishedWork,
Expand Down Expand Up @@ -16546,7 +16565,12 @@ __DEV__ &&
var didWarnAboutTailOptions = {};
var didWarnAboutDefaultPropsOnFunctionComponent = {};
var updateLegacyHiddenComponent = updateOffscreenComponent,
SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 },
SUSPENDED_MARKER = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
},
hasWarnedAboutUsingNoValuePropOnContextProvider = !1,
emptyObject = {},
didWarnAboutUndefinedSnapshotBeforeUpdate = null;
Expand Down Expand Up @@ -16870,10 +16894,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-classic-faf6c4df-20241218",
version: "19.1.0-www-classic-a9bbe346-20241219",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-classic-faf6c4df-20241218"
reconcilerVersion: "19.1.0-www-classic-a9bbe346-20241219"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16907,7 +16931,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-classic-faf6c4df-20241218";
exports.version = "19.1.0-www-classic-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
62 changes: 43 additions & 19 deletions compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -1876,6 +1876,18 @@ __DEV__ &&
));
return skipToNode + debugInfo + propName;
}
function upgradeHydrationErrorsToRecoverable() {
var queuedErrors = hydrationErrors;
null !== queuedErrors &&
(null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = queuedErrors)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
queuedErrors
),
(hydrationErrors = null));
return queuedErrors;
}
function resetContextDependencies() {
lastContextDependency = currentlyRenderingFiber$1 = null;
isDisallowedContextReadInDEV = !1;
Expand Down Expand Up @@ -8825,9 +8837,7 @@ __DEV__ &&
(current.memoizedState.isDehydrated &&
0 === (workInProgress.flags & 256)) ||
((workInProgress.flags |= 1024),
null !== hydrationErrors &&
(queueRecoverableErrors(hydrationErrors),
(hydrationErrors = null))),
upgradeHydrationErrorsToRecoverable()),
bubbleProperties(workInProgress),
enableTransitionTracing &&
0 !== (workInProgress.subtreeFlags & 8192) &&
Expand Down Expand Up @@ -8972,9 +8982,12 @@ __DEV__ &&
fallthroughToNormalSuspensePath.treeBaseDuration));
fallthroughToNormalSuspensePath = !1;
} else
null !== hydrationErrors &&
(queueRecoverableErrors(hydrationErrors),
(hydrationErrors = null)),
(fallthroughToNormalSuspensePath =
upgradeHydrationErrorsToRecoverable()),
null !== current &&
null !== current.memoizedState &&
(current.memoizedState.hydrationErrors =
fallthroughToNormalSuspensePath),
(fallthroughToNormalSuspensePath = !0);
if (!fallthroughToNormalSuspensePath) {
if (workInProgress.flags & 256)
Expand Down Expand Up @@ -11500,6 +11513,14 @@ __DEV__ &&
committedTransitions
);
break;
case 13:
recursivelyTraversePassiveMountEffects(
finishedRoot,
finishedWork,
committedLanes,
committedTransitions
);
break;
case 23:
recursivelyTraversePassiveMountEffects(
finishedRoot,
Expand Down Expand Up @@ -12238,7 +12259,13 @@ __DEV__ &&
}
exitStatus = workInProgressRootRecoverableErrors;
workInProgressRootRecoverableErrors = lanesThatJustErrored;
null !== exitStatus && queueRecoverableErrors(exitStatus);
null !== exitStatus &&
(null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = exitStatus)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
exitStatus
));
}
exitStatus = renderWasConcurrent;
}
Expand Down Expand Up @@ -12375,14 +12402,6 @@ __DEV__ &&
} while (1);
ensureRootIsScheduled(root);
}
function queueRecoverableErrors(errors) {
null === workInProgressRootRecoverableErrors
? (workInProgressRootRecoverableErrors = errors)
: workInProgressRootRecoverableErrors.push.apply(
workInProgressRootRecoverableErrors,
errors
);
}
function commitRootWhenReady(
root,
finishedWork,
Expand Down Expand Up @@ -16309,7 +16328,12 @@ __DEV__ &&
var didWarnAboutTailOptions = {};
var didWarnAboutDefaultPropsOnFunctionComponent = {};
var updateLegacyHiddenComponent = updateOffscreenComponent,
SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 },
SUSPENDED_MARKER = {
dehydrated: null,
treeContext: null,
retryLane: 0,
hydrationErrors: null
},
hasWarnedAboutUsingNoValuePropOnContextProvider = !1,
emptyObject = {},
didWarnAboutUndefinedSnapshotBeforeUpdate = null;
Expand Down Expand Up @@ -16633,10 +16657,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.1.0-www-modern-faf6c4df-20241218",
version: "19.1.0-www-modern-a9bbe346-20241219",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.1.0-www-modern-faf6c4df-20241218"
reconcilerVersion: "19.1.0-www-modern-a9bbe346-20241219"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
Expand Down Expand Up @@ -16670,7 +16694,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.1.0-www-modern-faf6c4df-20241218";
exports.version = "19.1.0-www-modern-a9bbe346-20241219";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 6c71a5b

Please sign in to comment.