diff --git a/example-hooks-gen/ts/__relay_artifacts__/TodoAppData.graphql.ts b/example-hooks-gen/ts/__relay_artifacts__/TodoAppData.graphql.ts index ad723a38..afa2cccc 100644 --- a/example-hooks-gen/ts/__relay_artifacts__/TodoAppData.graphql.ts +++ b/example-hooks-gen/ts/__relay_artifacts__/TodoAppData.graphql.ts @@ -119,6 +119,6 @@ export default node; export function useRefetchableTodoAppDataFragment(fragmentRef: TKey): [Required[" $data"], RefetchFnDynamic] export function useRefetchableTodoAppDataFragment(fragmentRef: TKey | null): [Required[" $data"] | null, RefetchFnDynamic] -export function useRefetchableTodoAppDataFragment(fragmentRef: any) { +export function useRefetchableTodoAppDataFragment(fragmentRef: any) { return useRefetchableFragment(node, fragmentRef) } diff --git a/src/hooks.ts b/src/hooks.ts index a7d99af0..ce1f1143 100644 --- a/src/hooks.ts +++ b/src/hooks.ts @@ -201,7 +201,7 @@ function makeRefetchableFragmentBlock(name: string, operation: string) { const n = capitalize(name); return `export function useRefetchable${n}Fragment(fragmentRef: TKey): [Required[" $data"], RefetchFnDynamic<${operation}, ${n}$key>] export function useRefetchable${n}Fragment(fragmentRef: TKey | null): [Required[" $data"] | null, RefetchFnDynamic<${operation}, ${n}$key | null>] -export function useRefetchable${n}Fragment(fragmentRef: any) { +export function useRefetchable${n}Fragment(fragmentRef: any) { return useRefetchableFragment(node, fragmentRef) }`; }