We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ddbc17 commit 363a558Copy full SHA for 363a558
auth/useAuthState.ts
@@ -7,8 +7,8 @@ export type AuthStateHook = {
7
initialising: boolean;
8
};
9
10
-export default (auth: auth.Auth, defaultUser?: User = undefined): AuthStateHook => {
11
- const { loading, setValue, value } = useLoadingValue<User>(defaultUser);
+export default (auth: auth.Auth): AuthStateHook => {
+ const { loading, setValue, value } = useLoadingValue<User>(auth().currentUser);
12
13
useEffect(
14
() => {
0 commit comments