You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fizz] Reset error component stack and fix error messages (#27456)
The way we collect component stacks right now are pretty fragile.
We expect that we'll call captureBoundaryErrorDetailsDev whenever an
error happens. That resets lastBoundaryErrorComponentStackDev to null
but if we don't, it just lingers and we don't set it to anything new
then which leaks the previous component stack into the next time we have
an error. So we need to reset it in a bunch of places.
This is still broken with erroredReplay because it has the inverse
problem that abortRemainingReplayNodes can call
captureBoundaryErrorDetailsDev more than one time. So the second
boundary won't get a stack.
We probably should try to figure out an alternative way to carry along
the stack. Perhaps WeakMap keyed by the error object.
This also fixes an issue where we weren't invoking the onShellReady
event if we error a replay. That event is a bit weird for resuming
because we're probably really supposed to just invoke it immediately if
we have already flushed the shell in the prerender which is always atm.
Right now, it gets invoked later than necessary because you could have a
resumed hole ready before a sibling in the shell is ready and that's
blocked.
DiffTrain build for commit 0fba3ec.
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-dev.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24772,7 +24772,7 @@ function createFiberRoot(
24772
24772
return root;
24773
24773
}
24774
24774
24775
-
var ReactVersion = "18.3.0-canary-6f1324395-20231004";
24775
+
var ReactVersion = "18.3.0-canary-0fba3ecf7-20231004";
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-prod.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8978,7 +8978,7 @@ var devToolsConfig$jscomp$inline_998 = {
8978
8978
throwError("TestRenderer does not support findFiberByHostInstance()");
8979
8979
},
8980
8980
bundleType: 0,
8981
-
version: "18.3.0-canary-6f1324395-20231004",
8981
+
version: "18.3.0-canary-0fba3ecf7-20231004",
8982
8982
rendererPackageName: "react-test-renderer"
8983
8983
};
8984
8984
varinternals$jscomp$inline_1191={
@@ -9009,7 +9009,7 @@ var internals$jscomp$inline_1191 = {
Copy file name to clipboardExpand all lines: compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react-test-renderer/cjs/ReactTestRenderer-profiling.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -9404,7 +9404,7 @@ var devToolsConfig$jscomp$inline_1040 = {
9404
9404
throwError("TestRenderer does not support findFiberByHostInstance()");
9405
9405
},
9406
9406
bundleType: 0,
9407
-
version: "18.3.0-canary-6f1324395-20231004",
9407
+
version: "18.3.0-canary-0fba3ecf7-20231004",
9408
9408
rendererPackageName: "react-test-renderer"
9409
9409
};
9410
9410
varinternals$jscomp$inline_1232={
@@ -9435,7 +9435,7 @@ var internals$jscomp$inline_1232 = {
0 commit comments