Back to Firebase Js Sdk

PersistentSingleTabManagerSettings interface

docs-devsite/firestore_.persistentsingletabmanagersettings.md

12.12.11.4 KB
Original Source

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

PersistentSingleTabManagerSettings interface

Type to configure an PersistentSingleTabManager instance.

<b>Signature:</b>

typescript
export declare interface PersistentSingleTabManagerSettings 

Properties

PropertyTypeDescription
forceOwnershipbooleanWhether to force-enable persistent (IndexedDB) cache for the client. This cannot be used with multi-tab synchronization and is primarily intended for use with Web Workers. Setting this to <code>true</code> will enable IndexedDB, but cause other tabs using IndexedDB cache to fail.

PersistentSingleTabManagerSettings.forceOwnership

Whether to force-enable persistent (IndexedDB) cache 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 IndexedDB, but cause other tabs using IndexedDB cache to fail.

<b>Signature:</b>

typescript
forceOwnership?: boolean;