Posts by Vinícius Machado • 16 points
3 posts
-
0
votes1
answer54
viewsA: Invert boolean variable React.js
Hello, does not work pq in React you use the concept of STATES to update or not the elements of your page. Probably, you don’t see the updated item because no state has changed, so it is not…
-
0
votes3
answers83
viewsA: Reading Asyncstorage generates an infinite loop
You should not be accessing Asyncstorage all the time. const [fetchStorage, setFetchStorage] = useState(true); if(show){ if (fetchStorage) { AsyncStorage.getItem('PEDIDO').then(value => {…
-
0
votes1
answer191
viewsA: Axios returning HTML data, not JSON
The problem is not in AXIOS in this case, probably you are making the request for a Website and not for an API. Experiment with other "Apis", for example, https://fakerapi.it/en is a widely used API…