Skip to main content

useSuspenseQuery()

Call Signature

function useSuspenseQuery<TData, TError>(options, queryClient?): Tanstack.UseSuspenseQueryResult<TData, TError>

Type Parameters

Type ParameterDefault type
TDataunknown
TErrorError

Parameters

ParameterType
optionsUseSuspenseQueryOptions<TData, TError, TData> & PowerSyncQueryOptions<any> & { query: undefined; }
queryClient?QueryClient

Returns

Tanstack.UseSuspenseQueryResult<TData, TError>

Call Signature

function useSuspenseQuery<TData, TError>(options, queryClient?): Tanstack.UseSuspenseQueryResult<TData[], TError>

Type Parameters

Type ParameterDefault type
TDataunknown
TErrorError

Parameters

ParameterType
optionsUseSuspenseQueryOptions<TData[], TError, TData[]> & PowerSyncQueryOptions<any> & { query: string | CompilableQuery<TData>; }
queryClient?QueryClient

Returns

Tanstack.UseSuspenseQueryResult<TData[], TError>