voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 836 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/remote-config](./remote-config.md) > [fetchAndActivate](./remote-config.fetchandactivate.md)
## fetchAndActivate() function
Performs fetch and activate operations, as a convenience.
<b>Signature:</b>
```typescript
export declare function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| remoteConfig | [RemoteConfig](./remote-config.remoteconfig.md) | The remote config instance. |
<b>Returns:</b>
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.