mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
docs(database): fix typo in quick-start.md #2898
Fix small typo `initilizing` -> `initializing`
This commit is contained in:
committed by
Mike Diarmid
parent
5471187b30
commit
3026b6ef37
@@ -92,7 +92,7 @@ import { Text } from 'react-native';
|
||||
import database from '@react-native-firebase/database';
|
||||
|
||||
function Role({ uid }) {
|
||||
const [initilizing, setInitilizing] = useState(true);
|
||||
const [initializing, setInitializing] = useState(true);
|
||||
const [role, setRole] = useState(null);
|
||||
|
||||
// Subscriber handler
|
||||
@@ -101,7 +101,7 @@ function Role({ uid }) {
|
||||
setRole(snapshot.val());
|
||||
|
||||
// Connection established
|
||||
if (initilizing) setInitilizing(false);
|
||||
if (initializing) setInitializing(false);
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
@@ -116,7 +116,7 @@ function Role({ uid }) {
|
||||
}, [uid]);
|
||||
|
||||
// Wait for first connection
|
||||
if (initilizing) return null;
|
||||
if (initializing) return null;
|
||||
|
||||
return <Text>{role}</Text>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user