79441779

Date: 2025-02-15 15:34:22
Score: 1.5
Natty:
Report link

Hope I´m getting this right ... you need just a one call inside the event card component? if that what you need yo probably need to pass an empty dependency array ... that way the api call will be triggered just once ...

useEffect(() => {
    async () => {
      setZones(await fetchZones());
    }
  }, [])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: martintorres