MCPcopy Create free account
hub / github.com/facebook/Rapid / beginTransaction

Method beginTransaction

modules/core/EditSystem.js:673–675  ·  view source on GitHub ↗

* beginTransaction * Prevents `stagingchange` and `stablechange` events from being emitted. * During a transaction, edits can be performed but no `change` events will be emitted. * This is to prevent other parts of the code from rendering/validating partial or incomplete edits.

()

Source from the content-addressed store, hash-verified

671 * This is to prevent other parts of the code from rendering/validating partial or incomplete edits.
672 */
673 beginTransaction() {
674 this._inTransaction = true;
675 }
676
677
678 /**

Callers 14

_doPasteMethod · 0.80
_changeTagsFunction · 0.80
_revertTagsFunction · 0.80
clickAutoFixAllFunction · 0.80
operationFunction · 0.80
operationFunction · 0.80
operationFunction · 0.80
exitMethod · 0.80
_moveMethod · 0.80
_clickMethod · 0.80
exitMethod · 0.80
_moveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected