Skip to main content

useSuspenseQuery()

useSuspenseQuery(options, queryClient)

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

Type parameters

Type parameterValue
TDataunknown
TErrorError

Parameters

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

Returns

Tanstack.UseSuspenseQueryResult<TData, TError>

useSuspenseQuery(options, queryClient)

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

Type parameters

Type parameterValue
TDataunknown
TErrorError

Parameters

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

Returns

Tanstack.UseSuspenseQueryResult<TData[], TError>