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