description |
layout |
Fetch data from Airstack by calling queries to the Airstack API. If you need any pagination, use useQueryWithPagination instead. |
title |
description |
tableOfContents |
outline |
pagination |
|
|
|
|
|
|
import { useQuery } from "@airstack/airstack-react";
const { data, error, loading } = useQuery(query, variables);
function useQuery(
query: string,
variables?: Variables,
configAndCallbacks?: ConfigAndCallabacks
): UseQueryReturnType
Param |
Type |
Default Value |
Description |
response |
UseQueryReturnType |
- |
Response from the hook that will return data, error logs, and loading state. |