skip to Main Content

Cannot access state property in React Native

I have two arrays in state: const [offers, setOffers] = useState([]); const [redemptions, setRedemptions] = useState([]); I am updating the properties within this function below: useEffect(() => { getData(); }, []); const getData = () => { Promise.all([getVenue(), getUserData(), getOffers(),…

VIEW QUESTION
Back To Top
Search