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

Function useSuspenseEnabledFromConfigAndContext

src/firebaseApp.tsx:67–76  ·  view source on GitHub ↗
(suspenseFromConfig?: boolean)

Source from the content-addressed store, hash-verified

65}
66
67export function useSuspenseEnabledFromConfigAndContext(suspenseFromConfig?: boolean): boolean {
68 let suspenseFromContext = React.useContext(SuspenseEnabledContext);
69
70 // prioritize config over context
71 if (suspenseFromConfig !== undefined) {
72 return suspenseFromConfig;
73 }
74
75 return suspenseFromContext;
76}
77
78export function useFirebaseApp() {
79 const firebaseApp = React.useContext(FirebaseAppContext);

Callers 4

useObservableFunction · 0.90
ClaimsCheckFunction · 0.90
AuthCheckFunction · 0.90
INTERNALStorageImageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected