Skip to content

@swapped/connect-sdk / core / preloadRemoteConfig

Function: preloadRemoteConfig()

preloadRemoteConfig(url?): Promise<SwappedRemoteConfigSnapshot>

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

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>