🔥 Firebase Svelte v2

createRemoteConfigNumberStore()

createRemoteConfigNumberStore(remoteConfig, key, options) creates a store that will activate the current remoteconfig instance. The store contains a number value retrieved from the remote config.

Parameters

  • remoteConfig: RemoteConfig - The remote config instance. If you put the component at the root of your app, or higher than where you're using this store, you can use null or undefined as the parameter and the store will retrieve the database instance from the context.
  • key: string - The remote config key.
  • options?: RemoteConfigStoreOptions<number>

Properties

  • subscribe: ((val: number) => void)) => void - Subscribe method for the Svelte store. Allows for the `$store` syntax.
  • loading: boolean - When the remote config key is loading.
  • error: unknown - Error if any.

Types

interface RemoteConfigStoreOptions&lt;T&gt; { subscribe: (val: number) => void; loading: boolean; error: unknown; }