Skip to content

Commit

Permalink
Rename function to better convey intent
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Dec 3, 2022
1 parent 5418ede commit 94168e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react/hooks/useSuspenseQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function useSuspenseQuery_experimental<
// immediately
if (!cacheEntry) {
cacheEntry = suspenseCache.add(query, variables, {
promise: wrapConcastWithPromise(
promise: maybeWrapConcastWithCustomPromise(
observable.reobserveAsConcast(watchQueryOptions),
{ deferred }
),
Expand Down Expand Up @@ -209,7 +209,7 @@ function toApolloError(result: ApolloQueryResult<any>) {
: result.error;
}

function wrapConcastWithPromise<TData>(
function maybeWrapConcastWithCustomPromise<TData>(
concast: Concast<ApolloQueryResult<TData>>,
{ deferred }: { deferred: boolean }
): Promise<ApolloQueryResult<TData>> {
Expand Down

0 comments on commit 94168e5

Please sign in to comment.