* Will get all pending transactions for given entity and re-apply them
(entity: AnyEntity)
| 184 | * Will get all pending transactions for given entity and re-apply them |
| 185 | */ |
| 186 | function rebaseEntityChanges(entity: AnyEntity) { |
| 187 | const changes = getEntityChanges(entity); |
| 188 | |
| 189 | if (!changes) return; |
| 190 | |
| 191 | for (const change of changes) { |
| 192 | reapplyEntityChange(change); |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | export function createTransaction() { |
| 197 | const changes: Change[] = []; |
no test coverage detected