usePowerSyncQuery()
function usePowerSyncQuery<T>(sqlStatement, parameters): T[]
Type Parameters
Type Parameter | Default type |
---|---|
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.