- useOffers(contract, listingId): {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: unknown;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: true;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: true;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "error";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: null;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: false;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: true;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "success";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: unknown;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: true;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: true;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "error";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: null;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: false;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: true;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "loading";
}
Beta
Returns {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: unknown;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: true;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: true;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "error";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: null;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: false;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: true;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "success";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: unknown;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: true;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: false;
isLoadingError: true;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "error";
} | {
data: Record<string, any>[] | undefined;
dataUpdatedAt: number;
error: null;
errorUpdateCount: number;
errorUpdatedAt: number;
failureCount: number;
failureReason: unknown;
fetchStatus: FetchStatus;
isError: false;
isFetched: boolean;
isFetchedAfterMount: boolean;
isFetching: boolean;
isInitialLoading: boolean;
isLoading: true;
isLoadingError: false;
isPaused: boolean;
isPlaceholderData: boolean;
isPreviousData: boolean;
isRefetchError: false;
isRefetching: boolean;
isStale: boolean;
isSuccess: false;
refetch: (<TPageData>(options?) => Promise<QueryObserverResult>);
remove: (() => void);
status: "loading";
}
Get all the offers for a listing