@@ -107,8 +107,6 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
107
107
let currentOnAddCallback : Function | undefined ;
108
108
109
109
decoder . triggerChanges = function ( allChanges : DataChange [ ] ) {
110
- // console.log("ALL CHANGES =>", allChanges);
111
-
112
110
const uniqueRefIds = new Set < number > ( ) ;
113
111
114
112
for ( let i = 0 , l = allChanges . length ; i < l ; i ++ ) {
@@ -292,9 +290,7 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
292
290
const instance = context . instance ?. [ prop ] ;
293
291
const onInstanceAvailable : OnInstanceAvailableCallback = (
294
292
( callback : ( ref : Ref , existing : boolean ) => void ) => {
295
- console . log ( "onInstanceAvailable!!" ) ;
296
293
const unbind = $ ( context . instance ) . listen ( prop , ( value , _ ) => {
297
- console . log ( "prop changed!" , prop ) ;
298
294
callback ( value , false ) ;
299
295
300
296
// FIXME: by "unbinding" the callback here,
@@ -349,12 +345,10 @@ export function getDecoderStateCallbacks<T extends Schema>(decoder: Decoder<T>):
349
345
} ;
350
346
351
347
const onRemove = function ( ref : Ref , callback : ( value : any , key : any ) => void ) {
352
- console . log ( "REGISTER ON REMOVE ON" , $root . refIds . get ( ref ) ) ;
353
348
return $root . addCallback ( $root . refIds . get ( ref ) , OPERATION . DELETE , callback ) ;
354
349
} ;
355
350
356
351
const onChange = function ( ref : Ref , callback : ( value : any , key : any ) => void ) {
357
- console . log ( "REGISTER ON CHANGE ON" , $root . refIds . get ( ref ) ) ;
358
352
return $root . addCallback ( $root . refIds . get ( ref ) , OPERATION . REPLACE , callback ) ;
359
353
} ;
360
354
0 commit comments