Skip to main content

usePowerSyncWatchedQuery()

function usePowerSyncWatchedQuery<T>(
sqlStatement,
sqlParameters,
options): WatchedQueryResult<T>

Type parameters

Type parameterValue
Tany

Parameters

ParameterTypeDefault value
sqlStatementMaybeRef<string>undefined
sqlParametersMaybeRef<any[]>[]
optionsOmit<SQLWatchOptions, "signal">{}

Returns

WatchedQueryResult<T>

Deprecated

use useQuery instead.

A composable to access the results of a watched query.