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

Function RcString

example/withoutSuspense/RemoteConfig.tsx:8–19  ·  view source on GitHub ↗
({ messageKey })

Source from the content-addressed store, hash-verified

6import { LoadingSpinner } from '../display/LoadingSpinner';
7
8export const RcString = ({ messageKey }) => {
9 const { status, data: messageValue } = useRemoteConfigString(messageKey);
10
11 if (status === 'loading') {
12 return <LoadingSpinner />;
13 }
14 return (
15 <CardSection title="Retrieve string 'message'">
16 <span>{messageValue}</span>
17 </CardSection>
18 );
19};
20
21export const RemoteConfig = () => {
22 const { status, data: remoteConfigInstance } = useInitRemoteConfig(async (firebaseApp) => {

Callers

nothing calls this directly

Calls 1

useRemoteConfigStringFunction · 0.85

Tested by

no test coverage detected