Skip to content

Commit

Permalink
Merge pull request #43 from AckeeCZ/fix/realm_collection
Browse files Browse the repository at this point in the history
Fix RealmCollection bug
  • Loading branch information
janmisar authored Jun 26, 2019
2 parents ecf8414 + 21ecf83 commit 8436c76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ACKReactiveExtensions/Realm/RealmExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public extension Reactive where Base: RealmCollection {

/// Property which represents the latest value
var property: ReactiveSwift.Property<Base> {
return ReactiveSwift.Property(initial: self.base, then: values.ignoreError().skip(first: 1) )
return ReactiveSwift.Property(initial: base, then: values.ignoreError() )
}
}

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

## master

- fix `RealmCollection` bug in case when Realm data is modified before it sends initial change notification (#43, kudos to @olejnjak)

## 5.0

- update ReactiveSwift & ReactiveCocoa, use native Result (#41, kudos to @olejnjak)
Expand Down

0 comments on commit 8436c76

Please sign in to comment.