You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[connectFirestoreEmulator(firestore, host, port, options)](./firestore_.md#connectfirestoreemulator)| Modify this instance to communicate with the Cloud Firestore emulator.<!---->Note: This must be called before this instance has been used to do any operations. |
26
26
|[disableNetwork(firestore)](./firestore_.md#disablenetwork)| Disables network usage for this instance. It can be re-enabled via [enableNetwork()](./firestore_.md#enablenetwork)<!---->. While the network is disabled, any snapshot listeners, <code>getDoc()</code> or <code>getDocs()</code> calls will return results from cache, and any write operations will be queued until the network is restored. |
27
27
|[doc(firestore, path, pathSegments)](./firestore_.md#doc)| Gets a <code>DocumentReference</code> instance that refers to the document at the specified absolute path. |
28
-
|[enableIndexedDbPersistence(firestore, persistenceSettings)](./firestore_.md#enableindexeddbpersistence)| Attempts to enable persistent storage, if possible.<!---->Must be called before any other functions (other than [initializeFirestore()](./firestore_.md#initializefirestore)<!---->, [getFirestore()](./firestore_.md#getfirestore) or [clearIndexedDbPersistence()](./firestore_.md#clearindexeddbpersistence)<!---->.<!---->If this fails, <code>enableIndexedDbPersistence()</code> will reject the promise it returns. Note that even after this failure, the [Firestore](./firestore_.firestore.md#firestore_class) instance will remain usable, however offline persistence will be disabled.<!---->There are several reasons why this can fail, which can be identified by the <code>code</code> on the error.<!---->\* failed-precondition: The app is already open in another browser tab. \* unimplemented: The browser is incompatible with the offline persistence implementation. |
28
+
| [enableIndexedDbPersistence(firestore, persistenceSettings)](./firestore_.md#enableindexeddbpersistence) | Attempts to enable persistent storage, if possible.<!-- -->Must be called before any other functions (other than [initializeFirestore()](./firestore_.md#initializefirestore)<!-- -->, [getFirestore()](./firestore_.md#getfirestore) or [clearIndexedDbPersistence()](./firestore_.md#clearindexeddbpersistence)<!-- -->.<!-- -->If this fails, <code>enableIndexedDbPersistence()</code> will reject the promise it returns. Note that even after this failure, the [Firestore](./firestore_.firestore.md#firestore_class) instance will remain usable, however offline persistence will be disabled.<!-- -->There are several reasons why this can fail, which can be identified by the <code>code</code> on the error.<!-- -->\* failed-precondition: The app is already open in another browser tab. \* unimplemented: The browser is incompatible with the offline persistence implementation.<!-- -->Persistence cannot be used in a Node.js environment. |
29
29
|[enableMultiTabIndexedDbPersistence(firestore)](./firestore_.md#enablemultitabindexeddbpersistence)| Attempts to enable multi-tab persistent storage, if possible. If enabled across all tabs, all operations share access to local persistence, including shared execution of queries and latency-compensated local document updates across all connected instances.<!---->If this fails, <code>enableMultiTabIndexedDbPersistence()</code> will reject the promise it returns. Note that even after this failure, the [Firestore](./firestore_.firestore.md#firestore_class) instance will remain usable, however offline persistence will be disabled.<!---->There are several reasons why this can fail, which can be identified by the <code>code</code> on the error.<!---->\* failed-precondition: The app is already open in another browser tab and multi-tab is not enabled. \* unimplemented: The browser is incompatible with the offline persistence implementation. |
30
30
|[enableNetwork(firestore)](./firestore_.md#enablenetwork)| Re-enables use of the network for this [Firestore](./firestore_.firestore.md#firestore_class) instance after a prior call to [disableNetwork()](./firestore_.md#disablenetwork)<!---->. |
31
31
|[loadBundle(firestore, bundleData)](./firestore_.md#loadbundle)| Loads a Firestore bundle into the local cache. |
|[memoryLocalCache(settings)](./firestore_.md#memorylocalcache)| Creates an instance of <code>MemoryLocalCache</code>. The instance can be set to <code>FirestoreSettings.cache</code> to tell the SDK which cache layer to use. |
105
105
|[memoryLruGarbageCollector(settings)](./firestore_.md#memorylrugarbagecollector)| Creates an instance of <code>MemoryLruGarbageCollector</code>.<!---->A target size can be specified as part of the setting parameter. The collector will start deleting documents once the cache size exceeds the given size. The default cache size is 40MB (40 \* 1024 \* 1024 bytes). |
106
-
|[persistentLocalCache(settings)](./firestore_.md#persistentlocalcache)| Creates an instance of <code>PersistentLocalCache</code>. The instance can be set to <code>FirestoreSettings.cache</code> to tell the SDK which cache layer to use. |
106
+
|[persistentLocalCache(settings)](./firestore_.md#persistentlocalcache)| Creates an instance of <code>PersistentLocalCache</code>. The instance can be set to <code>FirestoreSettings.cache</code> to tell the SDK which cache layer to use.<!---->Persistent cache cannot be used in a Node.js environment.|
107
107
|[persistentSingleTabManager(settings)](./firestore_.md#persistentsingletabmanager)| Creates an instance of <code>PersistentSingleTabManager</code>. |
108
108
| <b>function(snapshot...)</b> |
109
109
|[endAt(snapshot)](./firestore_.md#endat)| Creates a [QueryEndAtConstraint](./firestore_.queryendatconstraint.md#queryendatconstraint_class) that modifies the result set to end at the provided document (inclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of the query. |
|[MemoryEagerGarbageCollector](./firestore_.memoryeagergarbagecollector.md#memoryeagergarbagecollector_interface)| A garbage collector deletes documents whenever they are not part of any active queries, and have no local mutations attached to them.<!---->This collector tries to ensure lowest memory footprints from the SDK, at the risk of documents not being cached for offline queries or for direct queries to the cache.<!---->Use factory function to create an instance of this collector. |
161
161
|[MemoryLocalCache](./firestore_.memorylocalcache.md#memorylocalcache_interface)| Provides an in-memory cache to the SDK. This is the default cache unless explicitly configured otherwise.<!---->To use, create an instance using the factory function , then set the instance to <code>FirestoreSettings.cache</code> and call <code>initializeFirestore</code> using the settings object. |
162
162
|[MemoryLruGarbageCollector](./firestore_.memorylrugarbagecollector.md#memorylrugarbagecollector_interface)| A garbage collector deletes Least-Recently-Used documents in multiple batches.<!---->This collector is configured with a target size, and will only perform collection when the cached documents exceed the target size. It avoids querying backend repeated for the same query or document, at the risk of having a larger memory footprint.<!---->Use factory function to create a instance of this collector. |
163
-
|[PersistenceSettings](./firestore_.persistencesettings.md#persistencesettings_interface)| Settings that can be passed to <code>enableIndexedDbPersistence()</code> to configure Firestore persistence. |
164
-
|[PersistentCacheSettings](./firestore_.persistentcachesettings.md#persistentcachesettings_interface)| An settings object to configure an <code>PersistentLocalCache</code> instance. |
163
+
|[PersistenceSettings](./firestore_.persistencesettings.md#persistencesettings_interface)| Settings that can be passed to <code>enableIndexedDbPersistence()</code> to configure Firestore persistence.<!---->Persistence cannot be used in a Node.js environment.|
164
+
|[PersistentCacheSettings](./firestore_.persistentcachesettings.md#persistentcachesettings_interface)| An settings object to configure an <code>PersistentLocalCache</code> instance.<!---->Persistent cache cannot be used in a Node.js environment.|
165
165
|[PersistentLocalCache](./firestore_.persistentlocalcache.md#persistentlocalcache_interface)| Provides a persistent cache backed by IndexedDb to the SDK.<!---->To use, create an instance using the factory function , then set the instance to <code>FirestoreSettings.cache</code> and call <code>initializeFirestore</code> using the settings object. |
166
166
|[PersistentMultipleTabManager](./firestore_.persistentmultipletabmanager.md#persistentmultipletabmanager_interface)| A tab manager supporting multiple tabs. SDK will synchronize queries and mutations done across all tabs using the SDK. |
167
167
|[PersistentSingleTabManager](./firestore_.persistentsingletabmanager.md#persistentsingletabmanager_interface)| A tab manager supportting only one tab, no synchronization will be performed across tabs. |
@@ -421,6 +421,8 @@ There are several reasons why this can fail, which can be identified by the `cod
421
421
422
422
\* failed-precondition: The app is already open in another browser tab. \* unimplemented: The browser is incompatible with the offline persistence implementation.
423
423
424
+
Persistence cannot be used in a Node.js environment.
425
+
424
426
<b>Signature:</b>
425
427
426
428
```typescript
@@ -2009,6 +2011,8 @@ export declare function memoryLruGarbageCollector(settings?: {
2009
2011
2010
2012
Creates an instance of `PersistentLocalCache`<!---->. The instance can be set to `FirestoreSettings.cache` to tell the SDK which cache layer to use.
2011
2013
2014
+
Persistent cache cannot be used in a Node.js environment.
0 commit comments