Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function useFirestoreCollection(
query: firestore.Query,
options?: ReactFireOptions
): T extends {} ? T[] : firestore.QuerySnapshot {
const queryId = getHashFromFirestoreQuery(query);
return useObservable(
fromCollectionRef(query, checkIdField(options)),
queryId,
options ? options.startWithValue : undefined
);
}