Last updated

getSettings()

Gets cached settings without making an API call.

Signature

const settings = window.FairShareSDK.getSettings();

Returns

Settings | null — Cached settings object, or null if not yet fetched.

Example

// Check cached settings
const settings = window.FairShareSDK.getSettings();

if (settings) {
  console.log('Using cached settings');
} else {
  console.log('No cached settings, need to fetch');
}