Hello,
I’m wondering if there’s a best practice approach to handle multiple transactions.
Say you’re going through a function which calls other functions that trigger their own transactions.
example:
functionThatTriggersTransaction()
anotherFunctionThatTriggersTransaction()
ydoc.transact(() => {
yMapA.set(keyA, valueA)
yMapB.delete(keyB)
})