<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/remote-config](./remote-config.md) &gt; [ensureInitialized](./remote-config.ensureinitialized.md)

## ensureInitialized() function

Ensures the last activated config are available to the getters.

<b>Signature:</b>

```typescript
export declare function ensureInitialized(remoteConfig: RemoteConfig): Promise<void>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  remoteConfig | [RemoteConfig](./remote-config.remoteconfig.md) | The <code>RemoteConfig</code> instance. |

<b>Returns:</b>

Promise&lt;void&gt;

A promise that resolves when the last activated config is available to the getters.

