Skip to content

Commit 028377b

Browse files
committed
Use stableOptions.pollInterval
1 parent fe806eb commit 028377b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/react/hooks/useLazyQuery.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,9 @@ export const useLazyQuery: useLazyQuery.Signature = function useLazyQuery<
565565
refetchWritePolicy: stableOptions?.refetchWritePolicy,
566566
returnPartialData: stableOptions?.returnPartialData,
567567
notifyOnNetworkStatusChange: stableOptions?.notifyOnNetworkStatusChange,
568+
pollInterval: stableOptions?.pollInterval,
568569
nextFetchPolicy: options?.nextFetchPolicy,
569570
skipPollAttempt: options?.skipPollAttempt,
570-
pollInterval: options?.pollInterval,
571571
};
572572

573573
// Wait to apply the changed fetch policy until after the execute
@@ -590,7 +590,6 @@ export const useLazyQuery: useLazyQuery.Signature = function useLazyQuery<
590590
// so `stableOptions` isn't updated when using inline functions.
591591
options?.nextFetchPolicy,
592592
options?.skipPollAttempt,
593-
options?.pollInterval,
594593
]);
595594

596595
const execute: useLazyQuery.ExecFunction<TData, TVariables> =

0 commit comments

Comments
 (0)