Skip to content

Commit af06281

Browse files
committed
[DevTools] Use alternate as previous Fiber when reconciling root
1 parent 7a543ad commit af06281

File tree

1 file changed

+1
-1
lines changed
  • packages/react-devtools-shared/src/backend/fiber

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/backend/fiber/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5398,7 +5398,7 @@ export function attach(
53985398
rootToFiberInstanceMap.set(root, rootInstance);
53995399
idToDevToolsInstanceMap.set(rootInstance.id, rootInstance);
54005400
} else {
5401-
prevFiber = rootInstance.data;
5401+
prevFiber = rootInstance.data.alternate;
54025402
}
54035403
currentRoot = rootInstance;
54045404

0 commit comments

Comments
 (0)