Skip to content

Commit 6a9c7bd

Browse files
blazejkustrahoxyq
andauthored
Update optional chaining for subhooks
Co-authored-by: Ruslan Lesiutin <28902667+hoxyq@users.noreply.github.com>
1 parent 2ee5680 commit 6a9c7bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-devtools-shared/src/backend/fiber

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ export function attach(
20592059
const prevHook = prevTree[i];
20602060
const nextHook = nextTree[i];
20612061
2062-
if (prevHook.subHooks?.length > 0 && nextHook.subHooks?.length > 0) {
2062+
if (prevHook.subHooks.length > 0 && nextHook.subHooks.length > 0) {
20632063
traverse(prevHook.subHooks, nextHook.subHooks);
20642064
continue;
20652065
}

0 commit comments

Comments
 (0)