File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -5278,14 +5278,9 @@ export function attach(
52785278 // TODO: relying on this seems a bit fishy.
52795279 const wasMounted =
52805280 prevFiber.memoizedState != null &&
5281- prevFiber.memoizedState.element != null &&
5282- // A dehydrated root is not considered mounted
5283- prevFiber.memoizedState.isDehydrated !== true;
5281+ prevFiber.memoizedState.element != null;
52845282 const isMounted =
5285- current.memoizedState != null &&
5286- current.memoizedState.element != null &&
5287- // A dehydrated root is not considered mounted
5288- current.memoizedState.isDehydrated !== true;
5283+ current.memoizedState != null && current.memoizedState.element != null;
52895284 if (!wasMounted && isMounted) {
52905285 // Mount a new root.
52915286 setRootPseudoKey(currentRoot.id, current);
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ export function printOperationsArray(operations: Array<number>) {
300300 }
301301 case TREE_OPERATION_SET_SUBTREE_MODE: {
302302 const id = operations [ i + 1 ] ;
303- const mode = operations [ i + 1 ] ;
303+ const mode = operations [ i + 2 ] ;
304304
305305 i += 3 ;
306306
@@ -339,11 +339,11 @@ export function printOperationsArray(operations: Array<number>) {
339339 const fiberID = operations [ i + 1 ] ;
340340 const parentID = operations [ i + 2 ] ;
341341 const nameStringID = operations [ i + 3 ] ;
342- const name = stringTable [ nameStringID ] ;
343342 const numRects = operations [ i + 4 ] ;
344343
345344 i += 5 ;
346345
346+ const name = stringTable [ nameStringID ] ;
347347 let rects : string ;
348348 if ( numRects === - 1 ) {
349349 rects = 'null' ;
You can’t perform that action at this time.
0 commit comments