PersistenceSettings interface
Stay organized with collections
Save and categorize content based on your preferences.
Settings that can be passed to enableIndexedDbPersistence()
to configure Firestore persistence.
Persistence cannot be used in a Node.js environment.
Signature:
export declare interface PersistenceSettings
Properties
Property |
Type |
Description |
forceOwnership |
boolean |
Whether to force enable persistence for the client. This cannot be used with multi-tab synchronization and is primarily intended for use with Web Workers. Setting this to true will enable persistence, but cause other tabs using persistence to fail. |
PersistenceSettings.forceOwnership
Whether to force enable persistence for the client. This cannot be used with multi-tab synchronization and is primarily intended for use with Web Workers. Setting this to true
will enable persistence, but cause other tabs using persistence to fail.
Signature:
forceOwnership?: boolean;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-06-08 UTC.
[null,null,["Last updated 2023-06-08 UTC."],[],[],null,["Settings that can be passed to `enableIndexedDbPersistence()` to configure Firestore persistence.\n\nPersistence cannot be used in a Node.js environment.\n\n**Signature:** \n\n export declare interface PersistenceSettings \n\nProperties\n\nPersistenceSettings.forceOwnership\n\nWhether to force enable persistence for the client. This cannot be used with multi-tab synchronization and is primarily intended for use with Web Workers. Setting this to `true` will enable persistence, but cause other tabs using persistence to fail.\n\n**Signature:** \n\n forceOwnership?: boolean;"]]