🔥 Firebase Svelte v2

<RemoteConfig>

Props

  • remoteConfig?: RemoteConfig - The remote config instance, optional if you put the <FirebaseApp> component at the root of your app, or higher than where you're using this component.
  • startValue?: Data - The initial value of the store. This is useful if you want to avoid a loading state. The `Data` type is inferred from what data you give it.
  • minimumFetchIntervalInSeconds = 3600 - The minimum interval in seconds between config fetches. This is useful if you want to avoid fetching the config too often or too infrequently.

Slots & Props

default

The default slot is rendered when data is found.

  • remoteConfig: RemoteConfig - The remote config object.

disabled

The disabled slot. This is rendered if the remote config is disabled.

loading

The loading slot. This is rendered while the data is fetching.

fallback

The fallback slot. This is rendered when the data is not found.