MCPcopy Index your code
hub / github.com/NativeScript/firebase / doTransaction

Method doTransaction

packages/firebase-database/index.android.ts:513–517  ·  view source on GitHub ↗
(data: any)

Source from the content-addressed store, hash-verified

511 applyLocally,
512 new org.nativescript.firebase.database.FirebaseDatabase.TransactionCallback({
513 doTransaction(data: any): any {
514 const newData = transactionUpdate(deserialize(data));
515 // TODO improve
516 return serializeItems(newData, true);
517 },
518 onComplete(error: com.google.firebase.database.DatabaseError, commited: boolean, snapshot: com.google.firebase.database.DataSnapshot): void {
519 const ss = DataSnapshot.fromNative(snapshot);
520 if (error) {

Callers

nothing calls this directly

Calls 2

deserializeFunction · 0.90
serializeItemsFunction · 0.70

Tested by

no test coverage detected