Transaction

Hello.
What happens when there is an open transaction and is not closed (for example, an error occurred ) ?
Best Regards
Tadeusz

You will get errors in the console. You should design your app so that it never occurs.

If an error occurs and you need to stop the transaction you can call rollbackTransaction instead of commitTransaction.