Skip to content

Commit

Permalink
rename getQueryResult to getExecuteResult
Browse files Browse the repository at this point in the history
  • Loading branch information
brainkim committed Jun 23, 2021
1 parent 51b0b05 commit 8327829
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/react/data/QueryData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,6 @@ export class QueryData<TData, TVariables> extends OperationData<
this.onNewData();
};

private getExecuteResult(): QueryResult<TData, TVariables> {
return this.getQueryResult();
};

private getExecuteSsrResult() {
const { ssr, skip } = this.getOptions();
const ssrDisabled = ssr === false;
Expand All @@ -182,7 +178,7 @@ export class QueryData<TData, TVariables> extends OperationData<
}

if (this.ssrInitiated()) {
const result = this.getQueryResult() || ssrLoading;
const result = this.getExecuteResult() || ssrLoading;
if (result.loading && !skip) {
this.context.renderPromises!.addQueryPromise(this, () => null);
}
Expand Down Expand Up @@ -339,7 +335,7 @@ export class QueryData<TData, TVariables> extends OperationData<
}
}

private getQueryResult = (): QueryResult<TData, TVariables> => {
private getExecuteResult(): QueryResult<TData, TVariables> {
let result = this.observableQueryFields() as QueryResult<TData, TVariables>;
const options = this.getOptions();

Expand Down

0 comments on commit 8327829

Please sign in to comment.