Skip to content

Commit

Permalink
Fix fetcher usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eddeee888 committed Apr 25, 2024
1 parent a13dccc commit ec5c7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react/nextjs-swr/hooks/use-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function useGraphQL<TResult, TVariables>(
document.definitions.find(isOperationDefinition)?.name,
variables,
] as const,
async (_key: string, variables: any) =>
async ([_key, variables]: any) =>
executor({
document,
variables,
Expand Down

0 comments on commit ec5c7cb

Please sign in to comment.