I have a Swift app in which I have a PFQueryTableViewController, and I'd like to use the local datastore with Parse. But, I'm getting confused about using the local datastore alongside live queries.
Here is what I'd like to do:
- When the
PFQueryTableViewControlleris shown, I'd like it to always get data from the local datastore - But, after the view is rendered with no lag (since the local data store is powering the source of the data), I want to make an asynchronous call to update the local data store with most updated data from the cloud. At this point, if there is new data, I'd like the most updated data to appear in the table seamlessly and preferably with row animation.
How do I achieve this?