-
Notifications
You must be signed in to change notification settings - Fork 49
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
Handling Interface with @refetchable directive #499
Comments
Confirmed this also happens when handling a union |
Hey! Yeah this is unfortunately something controlled by Relay, where we have little influence at the moment. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I appreciate your work, and I believe there's an opportunity to enhance the handling of interface.
Currently, when handling an interface, it generates a variant if there is only an inline fragment. However, it does not generate a variant when using the refetchable directive.
This issue is related to ##315
Without refetchable directive, it generates:
However, with the refetchable directive, it generates:
I'm not certain if this behavior is due to the way types are handled by Relay, I hope we can improve this aspect as well!
The text was updated successfully, but these errors were encountered: