Skip to content

Conversation

JeremyVoisin
Copy link
Contributor

@JeremyVoisin JeremyVoisin commented Aug 18, 2023

This PR adds support for Firebase RemoteConfig through multiple components:

  • RemoteConfig: This component instantiates a firebase RemoteConfig instance from the FirebaseApp. The big challenge with RemoteConfig is the SDK to require a browser context to be able to start. My solution is to create the remoteConfig instance in the onMount lifecycle hook. The downside is the need for the app to be passed in the context.
  • RemoteConfigString: Fetch a string variable from RemoteConfig
  • RemoteConfigNumber: Fetch a number variable from RemoteConfig
  • RemoteConfigBoolean: Fetch a boolean variable from RemoteConfig
  • RemoteConfigValue: Fetch a variable from RemoteConfig in the raw Value format

These components support the default value configured in RemoteConfig when configured.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant