@techsio/storefront-data
Version:
Medusa-first storefront data layer built on TanStack Query.
13 lines (12 loc) • 462 B
JavaScript
"use client"
import { jsx } from "react/jsx-runtime";
import { QueryClientProvider } from "@tanstack/react-query";
import { getQueryClient } from "../shared/query-client.js";
function StorefrontDataProvider({ children, client, clientConfig }) {
const queryClient = client ?? getQueryClient(clientConfig);
return /*#__PURE__*/ jsx(QueryClientProvider, {
client: queryClient,
children: children
});
}
export { StorefrontDataProvider };