Originally created by @tosbaha on GitHub (Aug 20, 2018).
Hi,
In usual master detail view application, I have ListMonitor and I am passing objects to detail view controller with a segue. If I edit the object with
It successfully edits the object but the changes are not seen immediately. I have to refresh the object by going back and forth. However if I directly edit the object like object.property = value changes are seen immediately. Documents says that we should use the edit. How should I proceed?
Originally created by @tosbaha on GitHub (Aug 20, 2018).
Hi,
In usual master detail view application, I have ListMonitor and I am passing objects to detail view controller with a segue. If I edit the object with
```swift
Storage.stack.perform(asynchronous: { transation -> Void in
let editable = transation.edit(object)!
editable.property = value
}
```
It successfully edits the object but the changes are not seen immediately. I have to refresh the object by going back and forth. However if I directly edit the object like `object.property = value ` changes are seen immediately. Documents says that we should use the edit. How should I proceed?
I found my error. I had to wait for asynchronous operation to finish and call tableView.reloadData inside the completion block.
@tosbaha commented on GitHub (Aug 21, 2018):
I found my error. I had to wait for `asynchronous` operation to finish and call `tableView.reloadData` inside the completion block.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @tosbaha on GitHub (Aug 20, 2018).
Hi,
In usual master detail view application, I have ListMonitor and I am passing objects to detail view controller with a segue. If I edit the object with
It successfully edits the object but the changes are not seen immediately. I have to refresh the object by going back and forth. However if I directly edit the object like
object.property = valuechanges are seen immediately. Documents says that we should use the edit. How should I proceed?@tosbaha commented on GitHub (Aug 21, 2018):
I found my error. I had to wait for
asynchronousoperation to finish and calltableView.reloadDatainside the completion block.