Skip to content

Commit e1ebb95

Browse files
committed
Fix CI
1 parent 6871e73 commit e1ebb95

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

Diff for: packages/openapi-react-query/src/index.ts

+3-7
Original file line numberDiff line numberDiff line change
@@ -217,15 +217,11 @@ export default function createClient<Paths extends {}, Media extends MediaType =
217217
useSuspenseQuery(queryOptions(method, path, init as InitWithUnknowns<typeof init>, options), queryClient),
218218
useInfiniteQuery: (method, path, init, options, queryClient) => {
219219
const { pageParamName = "cursor", ...restOptions } = options;
220-
220+
const { queryKey } = queryOptions(method, path, init);
221221
return useInfiniteQuery(
222222
{
223-
queryKey: [method, path, init] as const,
224-
queryFn: async <Method extends HttpMethod, Path extends PathsWithMethod<Paths, Method>>({
225-
queryKey: [method, path, init],
226-
pageParam = 0,
227-
signal,
228-
}: QueryFunctionContext<QueryKey<Paths, Method, Path>, unknown>) => {
223+
queryKey,
224+
queryFn: async ({ queryKey: [method, path, init], pageParam = 0, signal }) => {
229225
const mth = method.toUpperCase() as Uppercase<typeof method>;
230226
const fn = client[mth] as ClientMethod<Paths, typeof method, Media>;
231227
const mergedInit = {

Diff for: pnpm-lock.yaml

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)