Issue Description
If I use a fragment with the @include directive useFragment react hook throws an error Invalid variable referenced in @include directive.
Link to Reproduction
https://codesandbox.io/p/sandbox/apollo-client-bug-5xym9k
Reproduction Steps
No response
@apollo/client version
3.10.8