Skip to main content

WatchedQueryState<Data>

State for WatchedQuery instances.

Type Parameters

Type Parameter
Data

Properties

PropertyModifierTypeDescription
datareadonlyDataThe last data returned by the query.
errorreadonlyError | nullThe last error that occurred while executing the query.
isFetchingreadonlybooleanIndicates whether the query is currently fetching data, is true during the initial load and any time when the query is re-evaluating (useful for large queries).
isLoadingreadonlybooleanIndicates the initial loading state (hard loading). Loading becomes false once the first set of results from the watched query is available or an error occurs.
lastUpdatedreadonlyDate | nullThe last time the query was updated.