@ -215,7 +216,8 @@ export class GraphApp extends App {
constnewRowsLength=params.rows.length;
this.log(
`onMessageReceived(${msg.id}:${msg.method}): paging in ${newRowsLength} rows into existing ${previousRowsLength} rows at ${params.paging.startingCursor} (last existing row: ${lastId})`,
scope,
`paging in ${newRowsLength} rows into existing ${previousRowsLength} rows at ${params.paging.startingCursor} (last existing row: ${lastId})`,
);
rows=[];
@ -223,18 +225,14 @@ export class GraphApp extends App {
rows.length=previousRowsLength+newRowsLength;
if(params.paging.startingCursor!==lastId){
this.log(
`onMessageReceived(${msg.id}:${msg.method}): searching for ${params.paging.startingCursor} in existing rows`,
);
this.log(scope,`searching for ${params.paging.startingCursor} in existing rows`);
leti=0;
letrow;
for(rowofpreviousRows){
rows[i++]=row;
if(row.sha===params.paging.startingCursor){
this.log(
`onMessageReceived(${msg.id}:${msg.method}): found ${params.paging.startingCursor} in existing rows`,
);
this.log(scope,`found ${params.paging.startingCursor} in existing rows`);
previousRowsLength=i;
@ -256,7 +254,7 @@ export class GraphApp extends App {
rows[previousRowsLength+i]=params.rows[i];
}
}else{
this.log(`onMessageReceived(${msg.id}:${msg.method}): setting to ${params.rows.length} rows`);
this.log(scope,`setting to ${params.rows.length} rows`);
if(params.rows.length===0){
rows=this.state.rows;
@ -281,6 +279,8 @@ export class GraphApp extends App {