usePowerSyncQuery()
function usePowerSyncQuery<T>(sqlStatement, parameters): T[]
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type | Default value |
---|---|---|
sqlStatement | string | undefined |
parameters | any [] | [] |
Returns
T
[]
Deprecated
use useQuery instead.
A hook to access a single static query. For an updated result, use usePowerSyncWatchedQuery instead.