Skip to content

Commit 160ddcb

Browse files
committed
[QuerySet objects] Retain queryset
1 parent c5d041d commit 160ddcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxQueryKit/RxQueryKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ extension QuerySet {
99
/// Performs a query for all objects matching the set predicate ordered by any set sort descriptors.
1010
/// Emits a value with an array of all objects when the managed object context is changed.
1111
public func objects() throws -> Observable<[ModelType]> {
12-
return context.qk_objectsDidChange().map { [unowned self] notification in
12+
return context.qk_objectsDidChange().map { notification in
1313
return try self.array()
1414
}.startWith(try self.array())
1515
}

0 commit comments

Comments
 (0)