File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -352,7 +352,8 @@ function createTree(
352
352
console . log ( 'LinkFiber' , {
353
353
tag,
354
354
elementType :
355
- elementType ?. _context ?. displayName ||
355
+ elementType ?. _context ?. displayName || //For ContextProvider
356
+ elementType ?. _result ?. name || //For lazy Component
356
357
elementType ?. render ?. name ||
357
358
elementType ?. name ||
358
359
elementType ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default (mode) => {
36
36
// if yes, find the component by its index and assign it to a variable
37
37
// call that components setState method to reset state to the state at the time of the jump snapshot
38
38
if ( component && component . setState ) {
39
- console . log ( 'timeJumps' , { component } ) ;
39
+ // console.log('timeJumps', { component });
40
40
component . setState (
41
41
// prevState contains the states of the snapshots we are jumping FROM, not jumping TO
42
42
( prevState ) => {
@@ -73,6 +73,7 @@ export default (mode) => {
73
73
counter += 1 ;
74
74
}
75
75
const hooksComponent = componentActionsRecord . getComponentByIndexHooks ( numArr ) ;
76
+ console . log ( 'timeJumps' , { hooksComponent, currState } ) ;
76
77
for ( let i = 0 ; i < currState . length ; i += 1 ) {
77
78
hooksComponent [ i ] . dispatch ( Object . values ( currState [ i ] ) [ 0 ] ) ;
78
79
}
You can’t perform that action at this time.
0 commit comments