type QueryResultAccessor<TData, TError> = ValueAccessor<QueryObserverResult<TData, TError>> & object;type QueryResultAccessor<TData, TError> = ValueAccessor<QueryObserverResult<TData, TError>> & object;Defined in: packages/lit-query/src/createQueryController.ts:41
Accessor returned by createQueryController.
Call the accessor or read its current property to get the latest query result. The attached methods delegate to the active query observer.
destroy: () => void;destroy: () => void;Removes the controller from its Lit host and unsubscribes observers.
void
refetch: QueryObserverResult<TData, TError>["refetch"];refetch: QueryObserverResult<TData, TError>["refetch"];Refetches the current query.
suspense: () => Promise<QueryObserverResult<TData, TError>>;suspense: () => Promise<QueryObserverResult<TData, TError>>;Resolves with an optimistic query result, fetching first when needed.
Promise<QueryObserverResult<TData, TError>>
TData
TError