useSuspenseQuery()
Call Signature
function useSuspenseQuery<TData, TError>(options, queryClient?): Tanstack.UseSuspenseQueryResult<TData, TError>
Type Parameters
Type Parameter | Default type |
---|---|
TData | unknown |
TError | Error |
Parameters
Parameter | Type |
---|---|
options | UseSuspenseQueryOptions <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 Parameter | Default type |
---|---|
TData | unknown |
TError | Error |
Parameters
Parameter | Type |
---|---|
options | UseSuspenseQueryOptions <TData [], TError , TData []> & PowerSyncQueryOptions <any > & { query : string | CompilableQuery <TData >; } |
queryClient ? | QueryClient |
Returns
Tanstack.UseSuspenseQueryResult
<TData
[], TError
>