diff --git a/app/api/client.ts b/app/api/client.ts
index a2701c0202..cdd3c08875 100644
--- a/app/api/client.ts
+++ b/app/api/client.ts
@@ -12,7 +12,6 @@ import {
getUseApiMutation,
getUseApiQueries,
getUseApiQuery,
- getUseApiQueryClient,
getUseApiQueryErrorsAllowed,
getUsePrefetchedApiQuery,
wrapQueryClient,
@@ -53,5 +52,6 @@ export const queryClient = new QueryClient({
// don't have access to context
export const apiQueryClient = wrapQueryClient(api.methods, queryClient)
-// to be used to retrieve the typed query client in components
-export const useApiQueryClient = getUseApiQueryClient(api.methods)
+// used to retrieve the typed query client in components. doesn't need to exist:
+// we could import apiQueryClient directly everywhere, but the change is noisy
+export const useApiQueryClient = () => apiQueryClient
diff --git a/app/api/hooks.ts b/app/api/hooks.ts
index 1d9a92d9ff..bf52dc06de 100644
--- a/app/api/hooks.ts
+++ b/app/api/hooks.ts
@@ -9,7 +9,6 @@ import {
useMutation,
useQueries,
useQuery,
- useQueryClient,
type DefaultError,
type FetchQueryOptions,
type InvalidateQueryFilters,
@@ -314,12 +313,7 @@ export const wrapQueryClient = (api: A, queryClient: QueryC
}),
})
-export const getUseApiQueryClient =
- (api: A) =>
- () =>
- wrapQueryClient(api, useQueryClient())
-
-/*
+/*
1. what's up with [method, params]?
https://react-query.tanstack.com/guides/queries