Skip to content

@swapped/connect-sdk / core / preloadRemoteConfig

Function: preloadRemoteConfig() ​

preloadRemoteConfig(url?): Promise<SwappedRemoteConfigSnapshot>

Defined in: src/config/remote-config.ts:553

Start the page-level remote config fetch before createSwappedConnectClient. Pass the same URL the client will use. Omit url to load the production CloudFront file.

Parameters ​

url? ​

string

Returns ​

Promise<SwappedRemoteConfigSnapshot>