Skip to content

Incorrect MutableObservableArray difference #704

@krotoff

Description

@krotoff

Hello.

I have an issue with diff and patch calculating. I receive nothing in these properties when have changes in the array.
To check this, I have added zipPrevious and it shows that I have real changes, but not diff and patch.

viewModel.bnd_items
  .zipPrevious()
  .observeNext { (old, items) in
    print(items.diff, items.patch, old?.collection == items.collection) 
    // Inserts: [], Deletes: [], Updates: [], Moves: [] [] false
  }
  .dispose(in: disposeBag)
  • ReactiveKit (3.17.4)
  • Bond (7.6.6):
    • Differ (~> 1.4)
    • ReactiveKit (~> 3.14)

MacOS 11.2.3 (BigSur)
Xcode 12.4
iOS 12.4-14.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions