({ children })
| 15 | }; |
| 16 | |
| 17 | const 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 | |
| 31 | export const RemoteConfig = () => { |
| 32 | return ( |
nothing calls this directly
no test coverage detected