I'm using a nested level of computed fields. I have paragraphs with computed fields, then another computed field that's a sibling to the paragraph field. The idea is that the parent computed field should check the values of the computed fields in the paragraphs, then show a "total" of each paragraph's computed field.
However, this doesn't appear to work well. The total appears to be using the computed field value from the previous paragraph save, not building the new revision first.
I thought - Oh well, I'll just compute directly against each paragraph, but the issue appears to be more fundamental - the values within the paragraphs themselves are not updating properly at the time of computation - even if the grand total was computed from values in each paragraph, the value would still be incorrect.
I can resolve this by saving the parent node twice, but that's not ideal and difficult (though not impossible) to do as an update hook.
It's not clear this is actually a computed_field problem (possibly having to do with the save order of referenced entity revisions), but has anyone hit this issue before, and is there a strategy for solving it?