Closed hajimetakase closed 3 years ago
I think Document.onCompleted() is called twice for each documents.
https://github.com/hukusuke1007/flamingo/blob/7437db4dd66157499d65013230032d6cba7f08a6/flamingo/lib/src/batch.dart#L126 https://github.com/hukusuke1007/flamingo/blob/7437db4dd66157499d65013230032d6cba7f08a6/flamingo/lib/src/document_accessor.dart#L37
Perhaps it should be called once for each documents after batch.commit() is completed?
I don't use this function heavily and it could be the specification.
Thank you for reporting. This is bug. I will fix it.
I think Document.onCompleted() is called twice for each documents.
https://github.com/hukusuke1007/flamingo/blob/7437db4dd66157499d65013230032d6cba7f08a6/flamingo/lib/src/batch.dart#L126 https://github.com/hukusuke1007/flamingo/blob/7437db4dd66157499d65013230032d6cba7f08a6/flamingo/lib/src/document_accessor.dart#L37
Perhaps it should be called once for each documents after batch.commit() is completed?