disableNetwork

Disables network usage for this instance. It can be re-enabled via enableNetwork. While the network is disabled, any snapshot listeners, getDoc() or getDocs() calls will return results from cache, and any write operations will be queued until the network is restored.

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

§Parameters

§
firestore: Firestore
[src]

§Return Type

§
Promise<void>
[src]

A Promise that is resolved once the network has been disabled.