UNPKG

@getcronit/pylon

Version:

![Pylon cover](https://github.com/user-attachments/assets/c28e49b2-5672-4849-826e-8b2eab0360cc)

18 lines (17 loc) 711 B
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 {};