Files
firebase-js-sdk/docs-devsite/remote-config.remoteconfigoptions.md
Kevin ElkoandGitHub 6b3297b34d SSR related improvements for RC client SDK. (#8699)
SSR related improvements for RC client SDK.

* Exposes an initialFetchResponse arg that pre-hydrates the client SDK state
* Adds an argument that allows setting an alternate template ID to fetch from
* Splits storage impls into a simple in-memory version that can be run in SSR contexts
* Adds some basic tests for the API functions, which were previously untested
2025-02-11 16:56:59 -05:00

1.3 KiB

Project: /docs/reference/js/_project.yaml Book: /docs/reference/_book.yaml page_type: reference

{% comment %} DO NOT EDIT THIS FILE! This is generated by the JS SDK team, and any local changes will be overwritten. Changes should be made in the source code at https://github.com/firebase/firebase-js-sdk {% endcomment %}

RemoteConfigOptions interface

Options for Remote Config initialization.

Signature:

export interface RemoteConfigOptions 

Properties

Property Type Description
initialFetchResponse FetchResponse Hydrates the state with an initial fetch response.
templateId string The ID of the template to use. If not provided, defaults to "firebase".

RemoteConfigOptions.initialFetchResponse

Hydrates the state with an initial fetch response.

Signature:

initialFetchResponse?: FetchResponse;

RemoteConfigOptions.templateId

The ID of the template to use. If not provided, defaults to "firebase".

Signature:

templateId?: string;