Skip to content

Commit ca6010b

Browse files
committed
Make sure it's not live since it can be referenced more than once
1 parent 7baf1b5 commit ca6010b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/react-client/src/ReactFlightClient.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,14 +1780,14 @@ function transferReferencedDebugInfo(
17801780
) {
17811781
// We should maybe use a unique symbol for arrays but this is a React owned array.
17821782
// $FlowFixMe[prop-missing]: This should be added to elements.
1783-
const existingDebugInfo: void | ReactDebugInfo =
1783+
const existingDebugInfo: ?ReactDebugInfo =
17841784
(referencedValue._debugInfo: any);
1785-
if (!existingDebugInfo) {
1785+
if (existingDebugInfo == null) {
17861786
Object.defineProperty((referencedValue: any), '_debugInfo', {
17871787
configurable: false,
17881788
enumerable: false,
17891789
writable: true,
1790-
value: referencedDebugInfo,
1790+
value: referencedDebugInfo.slice(0),
17911791
});
17921792
} else {
17931793
// $FlowFixMe[method-unbinding]

0 commit comments

Comments
 (0)