# amendTransaction

**URL:** <https://discuss.prosemirror.net/t/amendtransaction/1532>\
**Category:** Uncategorized\
**Created:** [September 24, 2018, 1:32pm UTC](https://discuss.prosemirror.net/t/amendtransaction/1532 "2018-09-24T13:32:18Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rich](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/rich/32/430_2.png) [@rich](https://discuss.prosemirror.net/u/rich)\
**Post date:** [September 24, 2018, 4:35pm UTC](https://discuss.prosemirror.net/t/amendtransaction/1532/3 "2018-09-24T16:35:39Z")

</div>

I’ve had a bit of a think about this and I’ve realised it’s tricky implement … I feel like the most sensible approach is to allow plugins to take it in turns to replace / filter a transaction. When one filters it then act as before, but when one replaces it then this should again be run against all the other plugins to see whether they would go further a this point. This perhaps is a touch like the ability for `appendTransaction` to bounce into an infinite loop but it seems to rely more heavily on ordering than previously.

> [@marijn](#):
>
> a `replaceTransaction` feature that can return an array of transactions

I’m not sure I quite understand why it would return an array here too?

---

_[View the full topic](https://discuss.prosemirror.net/t/amendtransaction/1532)._
