ra-core
Version:
Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React
14 lines • 438 B
TypeScript
/**
* Check if react-query has already fetched data for a query key.
*
* This hook is reactive.
*
* @example
* const isCustomerLoaded = useIsDataLoaded(['customers', 'getOne', { id: customerId }]);
*
* @returns {boolean} true if the data is loaded, false otherwise
*/
export declare const useIsDataLoaded: (queryKey: any, options?: {
enabled?: boolean | undefined;
}) => boolean;
//# sourceMappingURL=useIsDataLoaded.d.ts.map