Skip to content

Commit 0f4b322

Browse files
authored
Merge pull request #65 from ShaunLWM/patch-1
Update auth README.md
2 parents 7eb49f1 + 7248ed8 commit 0f4b322

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ Returns:
3636
import { useAuthState } from 'react-firebase-hooks/auth';
3737

3838
const CurrentUser = () => {
39-
const [user, initialising, error] = useAuthState(firebase.auth());
39+
const [user, loading, error] = useAuthState(firebase.auth());
4040
const login = () => {
4141
firebase.auth().signInWithEmailAndPassword('[email protected]', 'password');
4242
};
4343
const logout = () => {
4444
firebase.auth().signOut();
4545
};
4646

47-
if (initialising) {
47+
if (loading) {
4848
return (
4949
<div>
5050
<p>Initialising User...</p>

0 commit comments

Comments
 (0)