@getcronit/pylon
Version:

18 lines (17 loc) • 711 B
TypeScript
import type { UseQueryOptions } from '@gqty/react';
import type { Data } from './index';
interface UseDataOptions extends Omit<UseQueryOptions<any>, 'prepare' | 'suspense'> {
tags?: string[];
/**
* By default, this page will use pylon's build time query analysis to fetch the data.
* This improves the runtime performance and allows you to use conditional logic,
* such as if-conditions, in your data fetching logic.
* Set this to false to disable this feature.
*/
disableBuildTimeGeneration?: boolean;
}
export declare const useData: (options?: UseDataOptions) => Data & {
$refetch: () => void;
};
export declare const dataRefetch: (tags: string[]) => void;
export {};