recordIsLoaded (modelName, id) Boolean
This method returns if a certain record is already loaded in the store. Use this function to know beforehand if a findRecord() will result in a request or that it will be a cache hit.
Example
store.recordIsLoaded('post', 1); // false store.findRecord('post', 1).then(function() { store.recordIsLoaded('post', 1); // true });
Parameters:
-
modelName
String
-
id
String
Returns:
-
Boolean
Please login to continue.