In the current implementation, promises are never cleared from the transaction queue (this.tr). This results in the memory usage steadily growing for each new Doc that is synced.
This PR removes the last transaction for a given Doc from the queue once it completes.
In the current implementation, promises are never cleared from the transaction queue (
this.tr
). This results in the memory usage steadily growing for each new Doc that is synced.This PR removes the last transaction for a given Doc from the queue once it completes.