<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/remote-config](./remote-config.md) &gt; [fetchConfig](./remote-config.fetchconfig.md)

## fetchConfig() function

Fetches and caches configuration from the Remote Config service.

<b>Signature:</b>

```typescript
export declare function fetchConfig(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;

