The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/remote-config > fetchAndActivate

fetchAndActivate() function

Performs fetch and activate operations, as a convenience.

Signature:

export declare function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;

Parameters

Parameter Type Description
remoteConfig RemoteConfig The remote config instance.

Returns:

Promise<boolean>

A promise which resolves to true if the current call activated the fetched configs. If the fetched configs were already activated, the promise will resolve to false.