VaultTransactionConstructorParams.openMutationBypass method
VaultTransactionConstructorParams › openMutationBypass
Opens an ambient mutation-bypass scope covering the paths this transaction touches, so the transaction's own writes pass ashouldBlockMutations lock that the owning operation holds. It is called once when the transaction is constructed, and the returned Disposable is disposed when the transaction settles (on commit, rollback, or await using disposal) — so the bypass stays active through rollback, including auto-rollback, which a caller managing the scope itself could easily get wrong. Typically () => resourceLockComponent.bypassBlockedMutations(lockedPathsOrFiles). Omit it for the common standalone case where the transaction operates on unlocked paths.Signature:
openMutationBypass(this: void): DisposableParameters:
| Parameter | Type | Description |
|---|---|---|
| this | void |
Returns: Disposable — A Disposable that ends the bypass scope.