Open killev opened 5 years ago
Good catch 👍
How about removing the constructor which accepts both arguments:
public init(collection: Collection, patch: [Operation], diff: Diff) {
self.collection = collection
self.precalculatedPatch = patch
self.precalculatedDiff = diff
}
Working on collections/changesets I found a possible issue:
Line:
I think this is a mistake. You shouldn't pass patch option there. Then this patch will be used here:
And as far as it's empty it always reloadData.