Skip to content

useFragment throws an error when a fragment has the @include directive #11924

@dragozin

Description

@dragozin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions