We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0a045c commit 2d84b2bCopy full SHA for 2d84b2b
firestore/useCollection.ts
@@ -90,7 +90,7 @@ const useCollectionInternal = <T = DocumentData>(
90
listener();
91
};
92
} else {
93
- const get = getDocsFnFromGetOptions(options?.getOptions);
+ const get = getDocsFnFromGetOptions(options ? options.getOptions : undefined);
94
get(ref.current).then(setValue).catch(setError);
95
}
96
}, [ref.current]);
0 commit comments