Currently, in document-update-utility.mjs there is a toDto function defined which works in most cases. But in some cases, it causes infinite recursion. Apparently, the mechanisms to avoid recursing through a parent item are insufficient. It is difficult to track down where exactly the infinite recursion happens. It may ultimately not be worth it to always have band-aid solutions for this infinite recursion problem. Instead, making all dto-conversion explicit, gives much greater control, but is also a lot more work intensive.
Currently, in
document-update-utility.mjs
there is atoDto
function defined which works in most cases. But in some cases, it causes infinite recursion. Apparently, the mechanisms to avoid recursing through a parent item are insufficient. It is difficult to track down where exactly the infinite recursion happens. It may ultimately not be worth it to always have band-aid solutions for this infinite recursion problem. Instead, making all dto-conversion explicit, gives much greater control, but is also a lot more work intensive.