Skip to main content

WatchedQuerySettings<DataType>

Settings for WatchedQuery instances created via Query#watch.

Extends

Type Parameters

Type Parameter
DataType

Properties

PropertyTypeDescriptionInherited from
queryWatchCompatibleQuery<DataType>--
reportFetching?booleanIf true (default) the watched query will update its state to report on the fetching state of the query. Setting to false reduces the number of state changes if the fetch status is not relevant to the consumer.WatchedQueryOptions.reportFetching
throttleMs?numberThe minimum interval between queries.WatchedQueryOptions.throttleMs
triggerOnTables?string[]By default, watched queries requery the database on any change to any dependent table of the query. Supplying an override here can be used to limit the tables which trigger querying the database.WatchedQueryOptions.triggerOnTables