I finally figured out how to apply a functional / unidirectional data flow architecture to the (demanding) case of an editor. And yes, there are plans to integrate this into CodeMirror at some point.
[1]: https://discuss.prosemirror.net/t/discussion-the-limits-of-a...