getListData
Get raw data from the cache if available, and then update the list later with data from the base connection.
connection.getListData(set)
Checks the cacheConnection for set
's data.
If the cache connection has data, the cached data is returned. Prior to returning the data, the [can-connect/constructor.hydrateList] method is intercepted so we can get a handle on the list that's being created for the returned data. Once the intercepted list is retrieved, we use the base connection to get data and update the intercepted list and the cacheConnection.
If the cache connection does not have data, the base connection is used to load the data and the cached connection is updated with that data.
Parameters
- set
{Set}
:The set to load.