'write-after-close' ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.ts,tables/problems.jsonandservices/onsite-scripter/scripts/contract-docs-what-to-do.jsonbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
A member of ProblemCode · stable · since 2.0.0
A write through a closed tx or its handles (HoloTransactionClosedError).
A tx takes writes only while its transaction is open: make and await every write inside the work of session.transaction(work), never keep tx or its handles, and write through session after the transaction resolves.
await session.transaction(async (tx) => { await tx.select(group, first); });
await session.select(group, second);
HoloTransactionClosedError: Thrown at the call; nothing changes; the problem 'write-after-close' is recorded (after destroy(), closedBy is 'destroyed' and nothing is recorded; after el leaves the document, closedBy is 'aborted' and nothing is recorded (spec section 6.5); nor through a beforeCommit hook's commit.tx whose commit ended before its commit point).The set is open: handle a code you don't know ('other').
failure-matrix/cases/write-through-closed-tx (tables/failure-matrix.json)failure-matrix/errorCases/write-through-closed-tx (tables/failure-matrix.json)