Thank you for the response. I may not have phrased my question correctly...the issue that I'm having is that I'm building a mobile app where some of the data needs to persist...in case the app is closed completely and then opened while the device is offline, we want to keep some pieces of data.
In the prototype I'm working on, I've wrapped the dataSource in a deferred object that checks against the localStorage, if its expired, .read() is called.
I feel like there's an easier way to accomplish this but I just wanted to know if there is a better solution. I like the binding functionality wrapped in dataSource but I need an extra layer to manage how/when new data is requested.
deferred = $.Deferred();
bool = utils.dataStoreIsValid(constants.listNotifications);
payload = utils.getStorage(constants.listNotifications);