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
[Feature Request] Remote Config #176
Comments
Since Remote Config requires some top-level configuration, maybe we make a Provider component like function App() {
<FirebaseAppProvider firebaseConfig={myConfig}>
<RemoteConfigProvider
minimumFetchIntervalMillis={3600000}
defaultConfig={{ message: "welcome" }}
>
<MyComponent />
</RemoteConfigProvider>
</FirebaseAppProvider>;
}
function MyComponent() {
const welcomeMessage = useRemoteConfigValue("message");
return <h1>{welcomeMessage}</h1>;
} I'm not sure how we'd lazy load the SDK in this situation, though. I guess we could return the |
FYI #170 introduces |
Chatted with @jamesdaniels and a couple more ideas came up:
These would help hide some of the complexity of Remote Config |
Remote Config now supports web! Let's include it in ReactFire.
The text was updated successfully, but these errors were encountered: