Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

enableMultiTabIndexedDbPersistence

deprecated

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.

On failure, enableMultiTabIndexedDbPersistence() will reject the promise or throw an exception. There are several reasons why this can fail, which can be identified by the 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.

Note that even after a failure, the Firestore instance will remain usable, however offline persistence will be disabled.

@deprecated

This function will be removed in a future major release. Instead, set FirestoreSettings.localCache to an instance of PersistentLocalCache to turn on indexeddb cache. Calling this function when FirestoreSettings.localCache is already specified will throw an exception.

function enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>;
§
enableMultiTabIndexedDbPersistence(firestore: Firestore): Promise<void>
[src]

§Parameters

§
firestore: Firestore
[src]
  • The Firestore instance to enable persistence for.

§Return Type

§
Promise<void>
[src]

A Promise that represents successfully enabling persistent storage.