[client-preset] @skip & @include don't generate correct types when put on Fragments #8700
Unanswered
christiansany
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Yeah I think this is likely a missing thing and probable is more involved typing is required for generated types. Usually the arguments to the directives are passed at runtime so at build time we cannot really do much. I need to think more and follow other discussions on what can be done here but here I see there is a big discussion #6748 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've found a bug where the TypeScript Types that are generated with the client-preset (or also without this preset) don't take into consideration when you have
@skip
or@include
on a Fragment.With the following example, there is no Typescript Error, but there should be, since in the query we're always skipping the Fragment that is required for
<Child>
to render.Beta Was this translation helpful? Give feedback.
All reactions