-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useFragment throws an error when a fragment has the @include directive #11924
Labels
Comments
Thank you for the report - I've opened a PR with (hopefully) a fix. npm i @apollo/[email protected] |
Hello! Thank you for the quick fix! Yes, it helps! |
alessbell
added a commit
that referenced
this issue
Jul 10, 2024
* `watchFragment`: forward additional options to `diffOptions` fixes #11924 * chore: bump .size-limits.json * chore: bump .size-limits.json * Clean up Prettier, Size-limit, and Api-Extractor --------- Co-authored-by: Alessia Bellisario <[email protected]> Co-authored-by: alessbell <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
If I use a fragment with the
@include
directiveuseFragment
react hook throws an errorInvalid variable referenced in @include directive.
Link to Reproduction
https://codesandbox.io/p/sandbox/apollo-client-bug-5xym9k
Reproduction Steps
No response
@apollo/client
version3.10.8
The text was updated successfully, but these errors were encountered: