Response data type
Path parameters type
Query parameters type
Execute a query imperatively.
Uses queryClient.fetchQuery() — result is written to the TanStack cache
under the same key as useQuery for this operation+queryParams, so both
composables share data automatically.
Return type of
useLazyQuery.Shares the reactive state fields of
QueryReturn(data, isPending, isSuccess, isError, error, isEnabled, pathParams, queryKey) and adds afetch()method for imperative, on-demand query execution.