@@ -24,31 +24,12 @@ import type {
2424 InfiniteQueryStartParams ,
2525 InfiniteQueryUpdateOptionsAllVariants ,
2626} from './inifinite-query.types.js' ;
27+ import { originalQueryProperties } from './query.js' ;
2728import type { QueryClient } from './query-client.js' ;
2829import type { AnyQueryClient } from './query-client.types.js' ;
2930
30- const originalQueryProperties = [
31- 'data' ,
32- 'dataUpdatedAt' ,
33- 'error' ,
34- 'errorUpdatedAt' ,
35- 'failureCount' ,
36- 'failureReason' ,
37- 'errorUpdateCount' ,
38- 'isError' ,
39- 'isFetched' ,
40- 'isFetching' ,
41- 'isLoading' ,
42- 'isPending' ,
43- 'isLoadingError' ,
44- 'isPaused' ,
45- 'isPlaceholderData' ,
46- 'isRefetchError' ,
47- 'isRefetching' ,
48- 'isStale' ,
49- 'isSuccess' ,
50- 'status' ,
51- 'fetchStatus' ,
31+ export const originalInfiniteQueryProperties = [
32+ ...originalQueryProperties ,
5233 'fetchNextPage' ,
5334 'fetchPreviousPage' ,
5435 'hasNextPage' ,
@@ -90,7 +71,7 @@ export class InfiniteQuery<
9071 implements
9172 Pick <
9273 InfiniteQueryObserverBaseResult < TData , TError > ,
93- ( typeof originalQueryProperties ) [ number ]
74+ ( typeof originalInfiniteQueryProperties ) [ number ]
9475 >
9576{
9677 protected config : InfiniteQueryConfig <
@@ -348,7 +329,7 @@ export class InfiniteQuery<
348329 this . queryObserver = new InfiniteQueryObserver ( queryClient , this . options ) ;
349330
350331 this . finalizeInitialization ( {
351- originalQueryProperties,
332+ originalQueryProperties : originalInfiniteQueryProperties ,
352333 getAllDynamicOptions,
353334 abortSignal : config . abortSignal ,
354335 preserveExistingProperties : true ,
0 commit comments