본문으로 건너뛰기

인터페이스: UseLiveQueryReturn<TContext>

정의 위치: useLiveQuery.ts:44

useLiveQuery 훅의 반환 타입입니다.

타입 매개변수

TContext

TContext extends Context

속성

collection

collection: ComputedRef<Collection<{ [K in string | number | symbol]: ResultValue<TContext>[K] }, string | number, {
}, StandardSchemaV1<unknown, unknown>, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;

정의 위치: useLiveQuery.ts:47

기본 쿼리 컬렉션 인스턴스입니다.


data

data: ComputedRef<InferResultType<TContext>>;

정의 위치: useLiveQuery.ts:46

쿼리 결과의 순서를 유지하는 반응형 배열 또는 findOne 쿼리의 단일 결과입니다.


isCleanedUp

isCleanedUp: ComputedRef<boolean>;

정의 위치: useLiveQuery.ts:53

쿼리가 정리되었으면 true입니다.


isError

isError: ComputedRef<boolean>;

정의 위치: useLiveQuery.ts:52

쿼리에서 오류가 발생했으면 true입니다.


isIdle

isIdle: ComputedRef<boolean>;

정의 위치: useLiveQuery.ts:51

쿼리가 아직 시작되지 않았으면 true입니다.


isLoading

isLoading: ComputedRef<boolean>;

정의 위치: useLiveQuery.ts:49

초기 쿼리 데이터를 로드하는 동안 true입니다.


isReady

isReady: ComputedRef<boolean>;

정의 위치: useLiveQuery.ts:50

쿼리가 첫 데이터를 수신하고 준비되었으면 true입니다.


상태

state: ComputedRef<Map<string | number, { [K in string | number | symbol]: ResultValue<TContext>[K] }>>;

정의 위치: useLiveQuery.ts:45

쿼리 결과의 반응형 Map입니다(키 → 항목).


상태

status: ComputedRef<CollectionStatus>;

정의 위치: useLiveQuery.ts:48

현재 쿼리 상태입니다.