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 08cee09 commit 0cbca93Copy full SHA for 0cbca93
docs/auth/usage/index.md
@@ -58,13 +58,13 @@ function App() {
58
const [user, setUser] = useState();
59
60
// Handle user state changes
61
- function onAuthStateChanged(user) {
+ function handleAuthStateChanged(user) {
62
setUser(user);
63
if (initializing) setInitializing(false);
64
}
65
66
useEffect(() => {
67
- const subscriber = onAuthStateChanged(getAuth(), onAuthStateChanged);
+ const subscriber = onAuthStateChanged(getAuth(), handleAuthStateChanged);
68
return subscriber; // unsubscribe on unmount
69
}, []);
70
0 commit comments