You are viewing Skygear v1 Documentation.Switch to Skygear v0 Documentation
Offline Storage
Cached query
Skygear provides a simple cached query mechanism for application that wants to display data when the device is offline, or when the app has just started and hasn't had enough time to complete query requests to Skygear service yet. To make use of this, you just need to provide an extra callback function to the query
function, and the SDK will try to return the cached result before it gets the latest result from the Skygear server.