Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ardatan committed May 2, 2022
1 parent 3bd6418 commit 1aacf16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/persisted-queries/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function usePersistedQueries<TPluginContext>(
return {
onRequestParseDone: async function persistedQueriesOnRequestParseDone({
params,
setGraphQLParams,
setParams,
}) {
const persistedQueryData: PersistedQueryExtension =
params.extensions?.persistedQuery
Expand All @@ -70,7 +70,7 @@ export function usePersistedQueries<TPluginContext>(
if (persistedQuery == null) {
throw new GraphQLYogaError('PersistedQueryNotFound')
}
setGraphQLParams({
setParams({
...params,
query: persistedQuery,
})
Expand Down

0 comments on commit 1aacf16

Please sign in to comment.