> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Preloaded earning rules

> `Smile.earningRules.preloaded()`

This method retrieves the preloaded earning rules from the cache, without making an API call. Refer to [preloading resources](/js/concepts/preloading) to learn how to refresh the value.

<Tip>
  For this method to return a value, earning rules must first be [preloaded](/js/concepts/preloading). If you want to retrieve live values from the API, use the [`Smile.earningRules.get()`](/js/resources/earning-rules/get) method instead.
</Tip>

## Returns

This method returns an array of [earning rule objects](/js/resources/earning-rules/object). If earning rules have not been preloaded, `null` is returned.

<Panel>
  ```javascript JavaScript lines theme={null}
  Smile.earningRules.preloaded();
  ```
</Panel>
