I’ve two CRUD on t different collections of Firebase Firestore thats activated on a single click event. The operations are in series as one depends on success of another. However on random quick clicks on the button, I’m loosing the transaction integrity.
Is there a way to club the two transactions in a commit - rollback section, or something similar?
Any other idea to manage these situation is welcome.
Hi @Kaushik_Bhattacharya, if I understand the situation correctly, the Throttle flow function from the marketplace could work here. In case of multiple clicks on a button, it prevents sending another request after the first for a set amount of time.
Thanks @Mari . Mine is a bit risky use case. So I’m planning to Firebase cloud functions to do the updates from backend. Then use HTTP GET to invoke the function.