optimizations

This commit is contained in:
John Estropia committed 2019-11-29 20:09:43 +09:00
1 parent 4ee1b04523
commit b12dba4d15
7 files changed
+92 -25

No files matched your search

+1 -1
View File
@@ -62,7 +62,7 @@ public struct ObjectSnapshot<O: DynamicObject>: ObjectRepresentation, Hashable {
public func asPublisher(in dataStack: DataStack) -> ObjectPublisher<O> {
let context = dataStack.unsafeContext()
return ObjectPublisher<O>(objectID: self.id, context: context)
return context.objectPublisher(objectID: self.id)
}
public func asReadOnly(in dataStack: DataStack) -> O? {