Sootzani/utils/getQueryClient.jsx

6 lines
170 B
JavaScript

import { QueryClient } from "@tanstack/query-core";
import { cache } from "react";
const getQueryClient = cache(() => new QueryClient());
export default getQueryClient;