@@ -27,6 +27,8 @@ export class ArrayValue extends Value implements IHoverable {
2727 super ( ) ;
2828 Layout . memoizeValue ( data , this ) ;
2929 this . addReference ( firstReference ) ;
30+ console . log ( 'arrayvalue constructor...' ) ;
31+ console . log ( firstReference ) ;
3032 }
3133
3234 handleNewReference ( newReference : ReferenceType ) : void {
@@ -77,11 +79,13 @@ export class ArrayValue extends Value implements IHoverable {
7779 }
7880 }
7981
80- markAsReferenced ( ) {
81- if ( this . isReferenced ( ) ) return ;
82- super . markAsReferenced ( ) ;
82+ setReachable ( reachable : boolean = true ) {
83+ if ( this . isReachable ( ) ) return ;
84+ super . setReachable ( reachable ) ;
85+ // Propagate reachability to all array units
8386 for ( const unit of this . units ) {
84- unit . value . markAsReferenced ( ) ;
87+ unit . setReachable ( reachable ) ;
88+ unit . value . setReachable ( reachable ) ;
8589 }
8690 }
8791
@@ -101,6 +105,8 @@ export class ArrayValue extends Value implements IHoverable {
101105
102106 draw ( ) : React . ReactNode {
103107 if ( this . isDrawn ( ) ) return null ;
108+ console . log ( 'drawingarray...' ) ;
109+ console . log ( this ) ;
104110 this . _isDrawn = true ;
105111 return (
106112 < Group
@@ -115,12 +121,4 @@ export class ArrayValue extends Value implements IHoverable {
115121 </ Group >
116122 ) ;
117123 }
118-
119- setReachable ( reachable : boolean ) {
120- super . setReachable ( reachable ) ;
121- // Propagate reachability to all array units
122- this . units . forEach ( unit => {
123- unit . setReachable ( reachable ) ;
124- } ) ;
125- }
126124}
0 commit comments