tridion-sites-extensions-api-docs

Home > @tridion-sites/extensions > QueryOptions > enabled

QueryOptions.enabled property

Set this to false to disable automatic refetching when the query mounts or changes query keys. To refetch the query, use the refetch method returned from the useQuery instance. Defaults to true.

Signature:

enabled?: boolean;