MCPcopy Create free account
hub / github.com/CSFrequency/react-firebase-hooks / getDocsFnFromGetOptions

Function getDocsFnFromGetOptions

firestore/useCollection.ts:153–165  ·  view source on GitHub ↗
(
  { source }: GetOptions = { source: 'default' }
)

Source from the content-addressed store, hash-verified

151};
152
153const getDocsFnFromGetOptions = (
154 { source }: GetOptions = { source: 'default' }
155) => {
156 switch (source) {
157 default:
158 case 'default':
159 return getDocs;
160 case 'cache':
161 return getDocsFromCache;
162 case 'server':
163 return getDocsFromServer;
164 }
165};

Callers 1

useCollectionOnceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…