File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -184,11 +184,14 @@ function createTree(
184
184
185
185
if ( ! currentFiber ) return null ;
186
186
if ( ! tree ) return tree ;
187
-
187
+ console . log ( currentFiber ) ;
188
188
if ( currentFiber . tag === 0 || currentFiber . tag === 1 || currentFiber . tag === 2 ) {
189
189
if ( currentFiber . child && currentFiber . child . stateNode ) {
190
190
console . log ( currentFiber . child . stateNode ) ;
191
- currentFiber . child . stateNode . setAttribute ( "id" , "fromLinkFiber" + rtidCounter ) ;
191
+ rtid = "fromLinkFiber" + rtidCounter
192
+ // if (currentFiber.child.stateNode.setAttribute) {
193
+ currentFiber . child . stateNode . setAttribute ( "id" , rtid ) ;
194
+ // }
192
195
}
193
196
rtidCounter ++ ;
194
197
}
@@ -370,13 +373,15 @@ function createTree(
370
373
// We want to add this fiber node to the snapshot
371
374
if ( componentFound || newState === 'stateless' ) {
372
375
if ( fromSibling ) {
376
+ console . log ( rtid )
373
377
newNode = tree . addSibling (
374
378
newState ,
375
379
elementType ? elementType . name : 'nameless' ,
376
380
componentData ,
377
381
rtid
378
382
) ;
379
383
} else {
384
+ console . log ( rtid )
380
385
newNode = tree . addChild (
381
386
newState ,
382
387
elementType ? elementType . name : 'nameless' ,
You can’t perform that action at this time.
0 commit comments