0

So currently I'm pulling items from the backend using a service using axios.get() now on my actual file that pulls the service. I use useEffect() to call the service there it calls it, but sometimes I get an empty array [] but when I click on it, it actually contains an object with items do you happen to know why and what I could do to fix it so I can map through the items. enter image description here

Christian Gonzalez
  • 107
  • 1
  • 3
  • 9

0 Answers0