Skip to content

Commit 6c9d86f

Browse files
committed
refactor(react-query): simplify SelectedQueryOptions and UnSelectedQueryOptions by removing unused properties
1 parent 1159d35 commit 6c9d86f

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

packages/react-query/src/queryOptions.ts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ type SelectedQueryOptions<
1111
UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
1212
| 'getNextPageParam'
1313
| 'getPreviousPageParam'
14-
| 'queryKeyHashFn'
15-
| '_defaulted'
16-
| 'behavior'
17-
| 'structuralSharing'
18-
| 'isDataEqual'
1914
| 'onSuccess'
2015
| 'onError'
2116
| 'onSettled'
22-
| 'enabled'
17+
| 'context'
2318
| 'refetchInterval'
24-
| 'initialData'
25-
| 'networkMode'
2619
>,
27-
'queryKey' | 'queryFn'
20+
'queryKey'
2821
> & {
2922
select: (data: TQueryFnData) => TData
3023
}
@@ -39,20 +32,13 @@ type UnSelectedQueryOptions<
3932
UseQueryOptions<TQueryFnData, TError, TData, TQueryKey>,
4033
| 'getNextPageParam'
4134
| 'getPreviousPageParam'
42-
| 'queryKeyHashFn'
43-
| '_defaulted'
44-
| 'behavior'
45-
| 'structuralSharing'
46-
| 'isDataEqual'
4735
| 'onSuccess'
4836
| 'onError'
4937
| 'onSettled'
50-
| 'enabled'
38+
| 'context'
5139
| 'refetchInterval'
52-
| 'initialData'
53-
| 'networkMode'
5440
>,
55-
'queryKey' | 'queryFn'
41+
'queryKey'
5642
> & {
5743
select?: undefined
5844
}

0 commit comments

Comments
 (0)