UNPKG

@the-overse/ui-extensions-utils

Version:

Utility functions for Shopify UI Extensions

7 lines 273 B
export declare function useFetchState<T>(): [FetchState<T>, import("react").Dispatch<import("react").SetStateAction<FetchState<T>>>]; export type FetchState<T> = { data?: T | null; loading: boolean; error?: unknown | null; }; //# sourceMappingURL=index.d.ts.map