hey! I was surprised to see that Heckel didn't have static functions, and instead expects diffs to be carried out on an instance.
i noticed that in my usage of the class, i have
public func update(data: [ListSection], animating: Bool = false, completion: (() -> Void)? = nil) {
if self.data.isNotEmpty {
let diff = HeckelDiffingAlgorithm().diff(old: self.data, new: data)
where I create a new instance each time. Is that required? or can I create one instance and reuse it each time my data changes?
hey! I was surprised to see that
Heckel
didn't have static functions, and instead expects diffs to be carried out on an instance. i noticed that in my usage of the class, i havewhere I create a new instance each time. Is that required? or can I create one instance and reuse it each time my data changes?