-
Hi, I have a situation when I try to use gql.tada in a Remix application. In Remix's routes, the data are usually loaded into a Do you have any ideas on how to get around the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 This is specific to Remix because they've got a type enforcement on their
|
Beta Was this translation helpful? Give feedback.
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.