File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
packages/react-devtools-shared/src Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -2345,6 +2345,18 @@ export function attach(
2345
2345
const prevFallbackChildSet = prevFiberChild
2346
2346
? prevFiberChild . sibling
2347
2347
: null ;
2348
+
2349
+ if ( prevFallbackChildSet == null && nextFallbackChildSet != null ) {
2350
+ mountFiberRecursively (
2351
+ nextFallbackChildSet ,
2352
+ shouldIncludeInTree ? nextFiber : parentFiber ,
2353
+ true ,
2354
+ traceNearestHostComponentUpdate ,
2355
+ ) ;
2356
+
2357
+ shouldResetChildren = true ;
2358
+ }
2359
+
2348
2360
if (
2349
2361
nextFallbackChildSet != null &&
2350
2362
prevFallbackChildSet != null &&
Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ export function installHook(target: any): DevToolsHook | null {
320
320
321
321
let uidCounter = 0 ;
322
322
323
- function inject ( renderer : ReactRenderer ) {
323
+ function inject ( renderer : ReactRenderer ) : number {
324
324
const id = ++ uidCounter ;
325
325
renderers . set ( id , renderer ) ;
326
326
You can’t perform that action at this time.
0 commit comments