MCPcopy Index your code
hub / github.com/FirebaseExtended/reactfire / RemoteConfigWrapper

Function RemoteConfigWrapper

example/withSuspense/RemoteConfig.tsx:17–29  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

15};
16
17const RemoteConfigWrapper = ({ children }) => {
18 const { data: remoteConfigInstance } = useInitRemoteConfig(async (firebaseApp) => {
19 const remoteConfig = getRemoteConfig(firebaseApp);
20 remoteConfig.settings = {
21 minimumFetchIntervalMillis: 10000,
22 fetchTimeoutMillis: 10000,
23 };
24 await fetchAndActivate(remoteConfig);
25 return remoteConfig;
26 });
27
28 return <RemoteConfigProvider sdk={remoteConfigInstance}>{children}</RemoteConfigProvider>;
29};
30
31export const RemoteConfig = () => {
32 return (

Callers

nothing calls this directly

Calls 1

useInitRemoteConfigFunction · 0.85

Tested by

no test coverage detected