You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constfragment=graphql(` fragment User_AuthenticatedFragment on AuthenticatedUser { name }`)constdoc=graphql(`query User { id __typename ... on AuthenticatedUser { ...User_AuthenticatedFragment }}`)
How can I use useFragment(fragment, data) here? It looks like I get errors when I do.
My guess is the types don't match somehow or something. Weirdly, the resulting slot variable does indeed have the right types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Say I have a query like this:
How can I use
useFragment(fragment, data)
here? It looks like I get errors when I do.My guess is the types don't match somehow or something. Weirdly, the resulting
slot
variable does indeed have the right types.Beta Was this translation helpful? Give feedback.
All reactions