From 5be8430d348bd994976b914d4df6a9844f03b122 Mon Sep 17 00:00:00 2001 From: Fedor Gladovsky Date: Wed, 7 Sep 2022 16:54:46 +0300 Subject: [PATCH] fix(firestore): add useInfiniteQueryOptions --- packages/firestore/src/useFirestoreInfiniteQuery.ts | 1 + packages/firestore/src/useFirestoreInfiniteQueryData.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/firestore/src/useFirestoreInfiniteQuery.ts b/packages/firestore/src/useFirestoreInfiniteQuery.ts index 8c0c749..be49f36 100644 --- a/packages/firestore/src/useFirestoreInfiniteQuery.ts +++ b/packages/firestore/src/useFirestoreInfiniteQuery.ts @@ -54,5 +54,6 @@ export function useFirestoreInfiniteQuery< getNextPageParam(snapshot) { return getNextQuery(snapshot); }, + ...useInfiniteQueryOptions, }); } diff --git a/packages/firestore/src/useFirestoreInfiniteQueryData.ts b/packages/firestore/src/useFirestoreInfiniteQueryData.ts index 99712f6..6851269 100644 --- a/packages/firestore/src/useFirestoreInfiniteQueryData.ts +++ b/packages/firestore/src/useFirestoreInfiniteQueryData.ts @@ -103,5 +103,6 @@ export function useFirestoreInfiniteQueryData< getNextPageParam(data) { return getNextQuery(data); }, + ...useInfiniteQueryOptions, }); }