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.
2 parents 7eb49f1 + 7248ed8 commit 0f4b322Copy full SHA for 0f4b322
auth/README.md
@@ -36,15 +36,15 @@ Returns:
36
import { useAuthState } from 'react-firebase-hooks/auth';
37
38
const CurrentUser = () => {
39
- const [user, initialising, error] = useAuthState(firebase.auth());
+ const [user, loading, error] = useAuthState(firebase.auth());
40
const login = () => {
41
firebase.auth().signInWithEmailAndPassword('test@test.com', 'password');
42
};
43
const logout = () => {
44
firebase.auth().signOut();
45
46
47
- if (initialising) {
+ if (loading) {
48
return (
49
<div>
50
<p>Initialising User...</p>
0 commit comments