Skip to content

react-query-firebase / firestore / useGetDocData

Function: useGetDocData()

ts
function useGetDocData<AppModelType, DbModelType>(__namedParameters): UseQueryResult<AppModelType, Error>

Defined in: src/firestore/useGetDocData.ts:26

Custom React Hook to retrieve document data from Firestore using specified parameters.

Type Parameters

AppModelType extends DocumentData = DocumentData

DbModelType extends DocumentData = DocumentData

Parameters

__namedParameters

UseGetDocOptions<AppModelType, DbModelType>

Returns

UseQueryResult<AppModelType, Error>

Result of the query containing document data and query status.

Released under the MIT License.