TransactionOptions interface
Stay organized with collections
Save and categorize content based on your preferences.
An options object to configure transactions.
Signature:
export declare interface TransactionOptions
Properties
Property |
Type |
Description |
applyLocally |
boolean |
By default, events are raised each time the transaction update function runs. So if it is run multiple times, you may see intermediate states. You can set this to false to suppress these intermediate states and instead wait until the transaction has completed before events are raised. |
TransactionOptions.applyLocally
By default, events are raised each time the transaction update function runs. So if it is run multiple times, you may see intermediate states. You can set this to false to suppress these intermediate states and instead wait until the transaction has completed before events are raised.
Signature:
readonly applyLocally?: 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 2022-07-22 UTC.
[null,null,["Last updated 2022-07-22 UTC."],[],[],null,["# TransactionOptions interface\n\nAn options object to configure transactions.\n\n**Signature:** \n\n export declare interface TransactionOptions \n\nProperties\n----------\n\n| Property | Type | Description |\n|---------------------------------------------------------------------------------|---------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [applyLocally](./database.transactionoptions.md#transactionoptionsapplylocally) | boolean | By default, events are raised each time the transaction update function runs. So if it is run multiple times, you may see intermediate states. You can set this to false to suppress these intermediate states and instead wait until the transaction has completed before events are raised. |\n\nTransactionOptions.applyLocally\n-------------------------------\n\nBy default, events are raised each time the transaction update function runs. So if it is run multiple times, you may see intermediate states. You can set this to false to suppress these intermediate states and instead wait until the transaction has completed before events are raised.\n\n**Signature:** \n\n readonly applyLocally?: boolean;"]]