Closed MoSattler closed 3 years ago
useFragment does not work with typescript relay.
useFragment
In this case, the type of user is unknown.
user
interface Props { user: MyComponent_user; } const MyComponent = (props: Props) => { const user = useFragment(fragmentSpec, props.user); return null }
hi @MoSattler, as you can see in the documentation and / or sample project, you must use the type of the key.
useFragment
does not work with typescript relay.In this case, the type of
user
is unknown.