File tree 1 file changed +9
-3
lines changed
packages/store/src/-private/caches
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -676,15 +676,21 @@ function makeStableRecordIdentifier(
676
676
get [ DEBUG_IDENTIFIER_BUCKET ] ( ) {
677
677
return bucket ;
678
678
} ,
679
- toString ( ) {
679
+ } ;
680
+ Object . defineProperty ( proto , 'toString' , {
681
+ enumerable : false ,
682
+ value : ( ) => {
680
683
const { type, id, lid } = recordIdentifier ;
681
684
return `${ clientOriginated ? '[CLIENT_ORIGINATED] ' : '' } ${ String ( type ) } :${ String ( id ) } (${ lid } )` ;
682
685
} ,
683
- toJSON ( ) {
686
+ } ) ;
687
+ Object . defineProperty ( proto , 'toJSON' , {
688
+ enumerable : false ,
689
+ value : ( ) => {
684
690
const { type, id, lid } = recordIdentifier ;
685
691
return { type, id, lid } ;
686
692
} ,
687
- } ;
693
+ } ) ;
688
694
Object . setPrototypeOf ( wrapper , proto ) ;
689
695
DEBUG_MAP . set ( wrapper , recordIdentifier ) ;
690
696
wrapper = freeze ( wrapper ) ;
You can’t perform that action at this time.
0 commit comments