Waiting for documents to get added results in a race condition. this bug
Why
I narrowed down to this promise and how it is awaited here. I have no idea why it results in a race condition, but it does please see here. I suspect it has to do with the publication instantiation here. The fix is to keep track of children publications and to await them recursively. It seems to fix the issue.
What
Waiting for documents to get added results in a race condition. this bug
Why
I narrowed down to this promise and how it is awaited here. I have no idea why it results in a race condition, but it does please see here. I suspect it has to do with the publication instantiation here. The fix is to keep track of children publications and to await them recursively. It seems to fix the issue.