File tree Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Expand file tree Collapse file tree 1 file changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -222,21 +222,9 @@ function collectFieldsImpl(
222222 case Kind . FRAGMENT_SPREAD : {
223223 const fragName = selection . name . value ;
224224
225- const newDeferUsage = getDeferUsage (
226- variableValues ,
227- fragmentVariableValues ,
228- selection ,
229- deferUsage ,
230- ) ;
231-
232225 if (
233- ! newDeferUsage &&
234- ( visitedFragmentNames . has ( fragName ) ||
235- ! shouldIncludeNode (
236- selection ,
237- variableValues ,
238- fragmentVariableValues ,
239- ) )
226+ visitedFragmentNames . has ( fragName ) ||
227+ ! shouldIncludeNode ( selection , variableValues , fragmentVariableValues )
240228 ) {
241229 continue ;
242230 }
@@ -249,6 +237,13 @@ function collectFieldsImpl(
249237 continue ;
250238 }
251239
240+ const newDeferUsage = getDeferUsage (
241+ variableValues ,
242+ fragmentVariableValues ,
243+ selection ,
244+ deferUsage ,
245+ ) ;
246+
252247 const fragmentVariableSignatures = fragment . variableSignatures ;
253248 let newFragmentVariableValues : VariableValues | undefined ;
254249 if ( fragmentVariableSignatures ) {
You can’t perform that action at this time.
0 commit comments