Skip to content

react-query-firebase / firestore / UseGetRealtimeDocDataOptions

Type Alias: UseGetRealtimeDocDataOptions<AppModelType, DbModelType>

ts
type UseGetRealtimeDocDataOptions<AppModelType, DbModelType> = object;

Defined in: src/firestore/useGetRealtimeDocData.ts:10

Type Parameters

AppModelType

DbModelType extends DocumentData = DocumentData

Type declaration

onError()?

ts
optional onError: (error) => unknown;

A callback to be called if the listen fails or is cancelled. No further callbacks will occur.

Parameters

error

FirebaseError

Returns

unknown

path?

ts
optional path: string;

A slash-separated path to a document. Has to be omitted to use

pathSegments?

ts
optional pathSegments: string[];

Additional path segments that will be applied relative to the first argument.

reference?

ts
optional reference: 
  | CollectionReference<AppModelType, DbModelType>
| DocumentReference<AppModelType, DbModelType>;

A reference to a collection.

Released under the MIT License.