Skip to content

Commit 44784ad

Browse files
authored
Merge pull request #3 from lemol/patch-1
WIP: Set auth.currentUser as the initial value for useAuthState
2 parents 16d21b4 + 8f4c025 commit 44784ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/useAuthState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type AuthStateHook = {
88
};
99

1010
export default (auth: auth.Auth): AuthStateHook => {
11-
const { loading, setValue, value } = useLoadingValue<User>();
11+
const { loading, setValue, value } = useLoadingValue<User>(auth.currentUser);
1212

1313
useEffect(
1414
() => {

0 commit comments

Comments
 (0)