The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/firestore > / > PersistenceSettings

PersistenceSettings interface

Settings that can be passed to enableIndexedDbPersistence() to configure Firestore persistence.

Signature:

export declare interface PersistenceSettings 

Properties

Property Type Description
forceOwnership? boolean (Optional) 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.