skip to Main Content

React Native infinite loop

I declared and initialized the variable like this: const [user, setUser] = useState(null) Then make a function like this: const getUser2 = async () => { try { const user2 = await AsyncStorage.getItem('user') let parsed = JSON.parse(user2) setUser(parsed) console.warn('1') }…

VIEW QUESTION

Parse, AsyncStorage and React Native

Trying to work out using Parse with React Native and using Back4App as my BaaS. Running into a problem when setting up my asyncstorage (from react native). Parse.setAsyncStorage(AsyncStorage); //Paste below the Back4App Application ID AND the JavaScript KEY Parse.initialize('myappid', 'sdk');…

VIEW QUESTION
Back To Top
Search