You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -215,26 +216,23 @@ export class GraphApp extends App<State> {
215
216
constnewRowsLength=params.rows.length;
216
217
217
218
this.log(
218
-
`onMessageReceived(${msg.id}:${msg.method}): paging in ${newRowsLength} rows into existing ${previousRowsLength} rows at ${params.paging.startingCursor} (last existing row: ${lastId})`,
219
+
scope,
220
+
`paging in ${newRowsLength} rows into existing ${previousRowsLength} rows at ${params.paging.startingCursor} (last existing row: ${lastId})`,
219
221
);
220
222
221
223
rows=[];
222
224
// Preallocate the array to avoid reallocations
223
225
rows.length=previousRowsLength+newRowsLength;
224
226
225
227
if(params.paging.startingCursor!==lastId){
226
-
this.log(
227
-
`onMessageReceived(${msg.id}:${msg.method}): searching for ${params.paging.startingCursor} in existing rows`,
228
-
);
228
+
this.log(scope,`searching for ${params.paging.startingCursor} in existing rows`);
229
229
230
230
leti=0;
231
231
letrow;
232
232
for(rowofpreviousRows){
233
233
rows[i++]=row;
234
234
if(row.sha===params.paging.startingCursor){
235
-
this.log(
236
-
`onMessageReceived(${msg.id}:${msg.method}): found ${params.paging.startingCursor} in existing rows`,
237
-
);
235
+
this.log(scope,`found ${params.paging.startingCursor} in existing rows`);
238
236
239
237
previousRowsLength=i;
240
238
@@ -256,7 +254,7 @@ export class GraphApp extends App<State> {
256
254
rows[previousRowsLength+i]=params.rows[i];
257
255
}
258
256
}else{
259
-
this.log(`onMessageReceived(${msg.id}:${msg.method}): setting to ${params.rows.length} rows`);
257
+
this.log(scope,`setting to ${params.rows.length} rows`);
260
258
261
259
if(params.rows.length===0){
262
260
rows=this.state.rows;
@@ -281,6 +279,8 @@ export class GraphApp extends App<State> {
0 commit comments