(suspenseFromConfig?: boolean)
| 65 | } |
| 66 | |
| 67 | export 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 | |
| 78 | export function useFirebaseApp() { |
| 79 | const firebaseApp = React.useContext(FirebaseAppContext); |
no outgoing calls
no test coverage detected