File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' graphql-executor ' : patch
3
+ ---
4
+
5
+ Revisit fragments if visited initially with ` @defer `
6
+
7
+ Fragments visited previously with ` @defer ` have not been added to the initial group field set, and so must be added.
8
+
9
+ See: https://github.com/robrichard/defer-stream-wg/discussions/29#discussioncomment-2099307
Original file line number Diff line number Diff line change @@ -2594,7 +2594,6 @@ export class Executor {
2594
2594
) {
2595
2595
continue ;
2596
2596
}
2597
- visitedFragmentNames . add ( fragName ) ;
2598
2597
2599
2598
if ( defer ) {
2600
2599
const patchFields = new Map ( ) ;
@@ -2613,6 +2612,8 @@ export class Executor {
2613
2612
fields : patchFields ,
2614
2613
} ) ;
2615
2614
} else {
2615
+ visitedFragmentNames . add ( fragName ) ;
2616
+
2616
2617
this . collectFieldsImpl (
2617
2618
fragments ,
2618
2619
variableValues ,
You can’t perform that action at this time.
0 commit comments