(tx: Transaction<any>)
| 182 | } |
| 183 | |
| 184 | function registerTransaction(tx: Transaction<any>) { |
| 185 | // Clear any stale work that may have been left behind if a previous mutate |
| 186 | // scope aborted before we could flush. |
| 187 | transactionScopedScheduler.clear(tx.id) |
| 188 | transactionStack.push(tx) |
| 189 | } |
| 190 | |
| 191 | function unregisterTransaction(tx: Transaction<any>) { |
| 192 | // Always flush pending work for this transaction before removing it from |