Skip to main content

usePowerSyncQuery()

function usePowerSyncQuery<T>(sqlStatement, parameters): T[]

Type parameters

Type parameterValue
Tany

Parameters

ParameterTypeDefault value
sqlStatementstringundefined
parametersany[][]

Returns

T[]

Deprecated

use useQuery instead.

A hook to access a single static query. For an updated result, use usePowerSyncWatchedQuery instead.