React native – Getting AsyncStorage in useEffect is not setting the state before I call the fetch function
I'm using this library: const [userId, setUserId] = useState(''); import AsyncStorage from '@react-native-async-storage/async-storage'; When I Login here, I set the AsyncStorage: const storeUserId = async (id) => { try { await AsyncStorage.setItem( 'userId', id, ); } catch (error) { console.log(error);…