loadTheme
loadTheme(
opts,onUpdate?):Promise<RevTurbineTheme>
Load the tenant’s theme:
- Return the locally-persisted theme immediately (fast path).
- Fetch the latest from the API in the background.
- If the remote version differs, update local storage and return the new theme.
Returns a resolved RevTurbineTheme (merged with defaults).
Also provides an onUpdate callback callers can use to react to
background refreshes.
Parameters
Section titled “Parameters”ThemeLoaderOptions
onUpdate?
Section titled “onUpdate?”(theme) => void
Returns
Section titled “Returns”Promise<RevTurbineTheme>