Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
neil585456525 committed Oct 15, 2023
1 parent a2ac555 commit b22c111
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/plugins/typescript/react-query/src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export abstract class FetcherRenderer {
this.visitor.reactQueryOptionsIdentifiersInUse.add(infiniteQuery.getOptions());

const variables = this.generateInfiniteQueryVariablesSignature(config);

const options = this.generateInfiniteQueryOptionsSignature(config, isSuspense);

const generateBaseInfiniteQueryHook = (hookConfig: GenerateBaseHookConfig) => {
Expand Down Expand Up @@ -105,7 +104,6 @@ export abstract class FetcherRenderer {
this.visitor.reactQueryOptionsIdentifiersInUse.add(query.getOptions());

const variables = this.generateQueryVariablesSignature(config);

const options = this.generateQueryOptionsSignature(config, isSuspense);

const generateBaseQueryHook = (hookConfig: GenerateBaseHookConfig) => {
Expand Down Expand Up @@ -147,7 +145,6 @@ export abstract class FetcherRenderer {
this.visitor.reactQueryOptionsIdentifiersInUse.add(mutation.getOptions());

const variables = `variables?: ${operationVariablesTypes}`;

const options = `options?: ${mutation.getOptions()}<${operationResultType}, TError, ${operationVariablesTypes}, TContext>`;

const generateBaseMutationHook = (hookConfig: GenerateBaseHookConfig) => {
Expand Down

0 comments on commit b22c111

Please sign in to comment.