File tree 3 files changed +8
-0
lines changed
packages/firestore/src/api
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,8 @@ export function memoryLocalCache(
248
248
249
249
/**
250
250
* An settings object to configure an `PersistentLocalCache` instance.
251
+ *
252
+ * Persistent cache cannot be used in a Node.js environment.
251
253
*/
252
254
export type PersistentCacheSettings = {
253
255
/**
@@ -271,6 +273,8 @@ export type PersistentCacheSettings = {
271
273
/**
272
274
* Creates an instance of `PersistentLocalCache`. The instance can be set to
273
275
* `FirestoreSettings.cache` to tell the SDK which cache layer to use.
276
+ *
277
+ * Persistent cache cannot be used in a Node.js environment.
274
278
*/
275
279
export function persistentLocalCache (
276
280
settings ?: PersistentCacheSettings
Original file line number Diff line number Diff line change @@ -320,6 +320,8 @@ export function configureFirestore(firestore: Firestore): void {
320
320
* * unimplemented: The browser is incompatible with the offline
321
321
* persistence implementation.
322
322
*
323
+ * Persistence cannot be used in a Node.js environment.
324
+ *
323
325
* @param firestore - The {@link Firestore} instance to enable persistence for.
324
326
* @param persistenceSettings - Optional settings object to configure
325
327
* persistence.
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ export { DEFAULT_HOST } from '../lite-api/settings';
25
25
/**
26
26
* Settings that can be passed to `enableIndexedDbPersistence()` to configure
27
27
* Firestore persistence.
28
+ *
29
+ * Persistence cannot be used in a Node.js environment.
28
30
*/
29
31
export interface PersistenceSettings {
30
32
/**
You can’t perform that action at this time.
0 commit comments