@@ -49,22 +49,23 @@ export class IncrementalGraph {
49
49
addCompletedSuccessfulExecutionGroup (
50
50
successfulExecutionGroup : SuccessfulExecutionGroup ,
51
51
) : void {
52
- for ( const deferredFragmentRecord of successfulExecutionGroup
53
- . pendingExecutionGroup . deferredFragmentRecords ) {
54
- deferredFragmentRecord . pendingExecutionGroups . delete (
55
- successfulExecutionGroup . pendingExecutionGroup ,
56
- ) ;
57
- deferredFragmentRecord . successfulExecutionGroups . add (
58
- successfulExecutionGroup ,
59
- ) ;
52
+ const { pendingExecutionGroup, incrementalDataRecords } =
53
+ successfulExecutionGroup ;
54
+
55
+ const deferredFragmentRecords =
56
+ pendingExecutionGroup . deferredFragmentRecords ;
57
+
58
+ for ( const deferredFragmentRecord of deferredFragmentRecords ) {
59
+ const { pendingExecutionGroups, successfulExecutionGroups } =
60
+ deferredFragmentRecord ;
61
+ pendingExecutionGroups . delete ( pendingExecutionGroup ) ;
62
+ successfulExecutionGroups . add ( successfulExecutionGroup ) ;
60
63
}
61
64
62
- const incrementalDataRecords =
63
- successfulExecutionGroup . incrementalDataRecords ;
64
65
if ( incrementalDataRecords !== undefined ) {
65
66
this . _addIncrementalDataRecords (
66
67
incrementalDataRecords ,
67
- successfulExecutionGroup . pendingExecutionGroup . deferredFragmentRecords ,
68
+ deferredFragmentRecords ,
68
69
) ;
69
70
}
70
71
}
0 commit comments