MCPcopy
hub / github.com/yjs/yjs / transact

Method transact

src/utils/Doc.js:186–188  ·  view source on GitHub ↗

* Changes that happen inside of a transaction are bundled. This means that * the observer fires _after_ the transaction is finished and that all changes * that happened inside of the transaction are sent as one message to the * other peers. * * @template T * @param {function(Transa

(f, origin = null)

Source from the content-addressed store, hash-verified

184 * @public
185 */
186 transact (f, origin = null) {
187 return transact(this, f, origin)
188 }
189
190 /**
191 * Define a shared data type.

Calls 1

transactFunction · 0.90

Tested by

no test coverage detected