File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -501,8 +501,13 @@ export default (snap: Snapshot, mode: Mode): (() => void) => {
501
501
// nathan test
502
502
console . log ( 'devTools' , devTools ) ;
503
503
const reactInstance = devTools ? devTools . renderers . get ( 1 ) : null ;
504
+ // nathan test
505
+ console . log ( 'reactInstance' , reactInstance ) ;
504
506
fiberRoot = devTools . getFiberRoots ( 1 ) . values ( ) . next ( ) . value ;
505
-
507
+ // nathan test
508
+ console . log ( 'devTools.getFiberRoots(1)' , devTools . getFiberRoots ( 1 ) ) ;
509
+ console . log ( 'devTools.getFiberRoots(1).values()' , devTools . getFiberRoots ( 1 ) . values ( ) ) ;
510
+ console . log ( 'fiberRoot: ' , fiberRoot ) ;
506
511
const throttledUpdateSnapshot = throttle (
507
512
( ) => updateSnapShotTree ( snap , mode ) ,
508
513
70
@@ -512,6 +517,8 @@ export default (snap: Snapshot, mode: Mode): (() => void) => {
512
517
if ( reactInstance && reactInstance . version ) {
513
518
devTools . onCommitFiberRoot = ( function ( original ) {
514
519
return function ( ...args ) {
520
+ // nathan test
521
+ console . log ( 'args' , args ) ;
515
522
// eslint-disable-next-line prefer-destructuring
516
523
fiberRoot = args [ 1 ] ;
517
524
if ( doWork ) {
You can’t perform that action at this time.
0 commit comments