"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useQueryClient = void 0;
var _reactQuery = require("@tanstack/react-query");
/**
 * Custom hook to access the QueryClient
 * Provides type safety and ensures client is available
 */
const useQueryClient = () => {
  const queryClient = (0, _reactQuery.useQueryClient)();
  if (!queryClient) {
    throw new Error('QueryClient is not available. Make sure OxyProvider is wrapping your app.');
  }
  return queryClient;
};
exports.useQueryClient = useQueryClient;
//# sourceMappingURL=useQueryClient.js.map