()
| 174 | * } |
| 175 | */ |
| 176 | export function getActiveTransaction(): Transaction | undefined { |
| 177 | if (transactionStack.length > 0) { |
| 178 | return transactionStack.slice(-1)[0] |
| 179 | } else { |
| 180 | return undefined |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | function registerTransaction(tx: Transaction<any>) { |
| 185 | // Clear any stale work that may have been left behind if a previous mutate |
no outgoing calls
no test coverage detected