Skip to content

react-query-firebase / react-native/firestore / UseGetRealtimeDocDataOptions

Type Alias: UseGetRealtimeDocDataOptions<AppModelType>

ts
type UseGetRealtimeDocDataOptions<AppModelType> = object;

Defined in: react-native/firestore/useGetRealtimeDocData.ts:11

Type Parameters

AppModelType

AppModelType extends AppModel = AppModel

Properties

onError()?

ts
optional onError: (error) => unknown;

Defined in: react-native/firestore/useGetRealtimeDocData.ts:29

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

Parameters

error

ReactNativeFirebase.NativeFirebaseError | Error

Returns

unknown


path?

ts
optional path: string;

Defined in: react-native/firestore/useGetRealtimeDocData.ts:15

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


pathSegments?

ts
optional pathSegments: string[];

Defined in: react-native/firestore/useGetRealtimeDocData.ts:24

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


reference?

ts
optional reference: FirebaseFirestoreTypes.DocumentReference<AppModelType>;

Defined in: react-native/firestore/useGetRealtimeDocData.ts:19

A reference to a collection.

Released under the MIT License.