Skip to main content
JavaScript
Smile.earningRules.preloaded();
This method retrieves the preloaded earning rules from the cache, without making an API call. Refer to preloading resources to learn how to refresh the value.
For this method to return a value, earning rules must first be preloaded. If you want to retrieve live values from the API, use the Smile.earningRules.get() method instead.

Returns

This method returns an array of earning rule objects. If earning rules have not been preloaded, null is returned.