diff --git a/packages/connect-query-core/src/create-infinite-query-options.ts b/packages/connect-query-core/src/create-infinite-query-options.ts index b01d7925..1ee4206c 100644 --- a/packages/connect-query-core/src/create-infinite-query-options.ts +++ b/packages/connect-query-core/src/create-infinite-query-options.ts @@ -22,7 +22,6 @@ import type { Transport } from "@connectrpc/connect"; import type { GetNextPageParamFunction, QueryFunction, - QueryKey, SkipToken, } from "@tanstack/query-core"; import { skipToken } from "@tanstack/query-core"; @@ -117,7 +116,6 @@ export function createInfiniteQueryOptions< | SkipToken; structuralSharing: (oldData: unknown, newData: unknown) => unknown; initialPageParam: MessageInitShape[ParamKey]; - queryKeyHashFn: (queryKey: QueryKey) => string; } { const queryKey = createConnectQueryKey({ cardinality: "infinite", @@ -141,6 +139,5 @@ export function createInfiniteQueryOptions< queryKey, queryFn, structuralSharing, - queryKeyHashFn: JSON.stringify, }; }