UNPKG

@techsio/storefront-data

Version:

Medusa-first storefront data layer built on TanStack Query.

13 lines • 655 B
import { type QueryClient } from "@tanstack/react-query"; import type { PropsWithChildren } from "react"; import { type QueryClientConfig } from "../shared/query-client"; export type StorefrontDataProviderProps = PropsWithChildren<{ client?: QueryClient; /** * Applied only when creating the internal singleton QueryClient for the first time. * Later renders will reuse the existing singleton. */ clientConfig?: QueryClientConfig; }>; export declare function StorefrontDataProvider({ children, client, clientConfig, }: StorefrontDataProviderProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=provider.d.ts.map