Skip to content

Commit a8111b2

Browse files
committed
[devtools] Fix can't expand in some scenario
1 parent 50393dc commit a8111b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-devtools-shared/src/hydration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,9 @@ export function hydrate(
383383

384384
const value = parent[last];
385385

386-
if (value.type === 'infinity') {
386+
if (!value) {
387+
return;
388+
} else if (value.type === 'infinity') {
387389
parent[last] = Infinity;
388390
} else if (value.type === 'nan') {
389391
parent[last] = NaN;

0 commit comments

Comments
 (0)