Skip to content

Fields not considered to be used in Remix app #315

Answered by kitten
oltodo asked this question in Q&A
Discussion options

You must be logged in to vote

There's inherently no way to fix this, sorry! The easiest way of ensuring that this works as intended is either ignoring the issue or using fragments locally per your component where you're consuming the data.

The problem is that once you serialize the data the type becomes detached from the original definition site. When json is called, the type is basically remapped which means that GraphQLSP can't track it.

This is specific to Remix because they've got a type enforcement on their json utility.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@oltodo
Comment options

Answer selected by oltodo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants