Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Remote Config #120

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

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