Skip to content

Commit f654109

Browse files
Export SDK contexts for react-reconciler use case (#486)
react-reconciler: https://www.npmjs.com/package/react-reconciler
1 parent 8d85687 commit f654109

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/sdk.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ import { ObservableStatus, useObservable } from './useObservable';
1515
import { from } from 'rxjs';
1616
import { ReactFireOptions } from '.';
1717

18-
const AppCheckSdkContext = React.createContext<AppCheck | undefined>(undefined);
19-
const AuthSdkContext = React.createContext<Auth | undefined>(undefined);
20-
const AnalyticsSdkContext = React.createContext<Analytics | undefined>(undefined);
21-
const DatabaseSdkContext = React.createContext<Database | undefined>(undefined);
22-
const FirestoreSdkContext = React.createContext<Firestore | undefined>(undefined);
23-
const FunctionsSdkContext = React.createContext<Functions | undefined>(undefined);
24-
const StorageSdkContext = React.createContext<FirebaseStorage | undefined>(undefined);
25-
const PerformanceSdkContext = React.createContext<FirebasePerformance | undefined>(undefined);
26-
const RemoteConfigSdkContext = React.createContext<RemoteConfig | undefined>(undefined);
18+
export const AppCheckSdkContext = React.createContext<AppCheck | undefined>(undefined);
19+
export const AuthSdkContext = React.createContext<Auth | undefined>(undefined);
20+
export const AnalyticsSdkContext = React.createContext<Analytics | undefined>(undefined);
21+
export const DatabaseSdkContext = React.createContext<Database | undefined>(undefined);
22+
export const FirestoreSdkContext = React.createContext<Firestore | undefined>(undefined);
23+
export const FunctionsSdkContext = React.createContext<Functions | undefined>(undefined);
24+
export const StorageSdkContext = React.createContext<FirebaseStorage | undefined>(undefined);
25+
export const PerformanceSdkContext = React.createContext<FirebasePerformance | undefined>(undefined);
26+
export const RemoteConfigSdkContext = React.createContext<RemoteConfig | undefined>(undefined);
2727

2828
type FirebaseSdks = Analytics | AppCheck | Auth | Database | Firestore | FirebasePerformance | FirebaseStorage | Functions | RemoteConfig;
2929

0 commit comments

Comments
 (0)