Skip to main content

DifferentialWatchedQueryOptions<RowType>

Options for building a differential watched query with the Query builder.

Extends

Extended by

Type Parameters

Type Parameter
RowType

Properties

PropertyTypeDescriptionInherited from
placeholderData?RowType[]Initial result data which is presented while the initial loading is executing.-
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
rowComparator?DifferentialWatchedQueryComparator<RowType>Row comparator used to identify and compare rows in the result set. If not provided, the default comparator will be used which keys items by their id property if available, otherwise it uses JSON stringification of the entire item for keying and comparison.-
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